bassmanitram / actions-for-nautilus

An extension to the Gnome "Files" file manager that allows you to add arbitrary actions to the file selection context menu.
Apache License 2.0
165 stars 16 forks source link

not an issue, for the Wiki #52

Closed biokomiker closed 7 months ago

biokomiker commented 7 months ago

to compress pdf via gs

    {
        "type": "command",
        "label": "compress pdf",
        "command_line": "gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -dAutoRotatePages=/None  -dPDFSETTINGS=/ebook -r100 -sOutputFile=%w\"_compressed.pdf\"  %b",
        "cwd": "%d",
        "mimetypes": [
            "application/pdf"
        ],
        "filetypes": [
            "standard"
        ]
    },

-r sets the resolution and has a strong effect on file size; you may also delete -r in this case the file size is strongly effected by -dPDFSETTINGS=/ebook if you set this to -dPDFSETTINGS=/screen you get tiny pdfs with very low resolution

Thanks again for this nice tool & Merry Xmas

bassmanitram commented 7 months ago

VERY cool! Adding it immediately. Thanks for using the tool and merry christmas/happy new year to you too!

bassmanitram commented 7 months ago

Added