I am a newbie, and I am looking to streamline using the script with and without opening the terminal. Firstly, I am trying to execute:
$ ./shrinkpdf.sh -g "file name with spaces.pdf"
and get the output in a PDF file with a similar name (eg "file name with spaces_compressed.pdf", "file name with spaces_1.pdf" or something similar). As far as I can see, I have to specify an output filename every time.
This may already be possible, but if it isn't, is there a way to update the script to facilitate it?
Then, it would be good if we could right-click on a file (in my case in Dolphin in Debian 13 with KDE Plasma) and select 'Open with' the script. There must be a way to do this and it would improve efficiency dramatically.
I am a newbie, and I am looking to streamline using the script with and without opening the terminal. Firstly, I am trying to execute:
$ ./shrinkpdf.sh -g "file name with spaces.pdf"and get the output in a PDF file with a similar name (eg "file name with spaces_compressed.pdf", "file name with spaces_1.pdf" or something similar). As far as I can see, I have to specify an output filename every time.
This may already be possible, but if it isn't, is there a way to update the script to facilitate it?
Then, it would be good if we could right-click on a file (in my case in Dolphin in Debian 13 with KDE Plasma) and select 'Open with' the script. There must be a way to do this and it would improve efficiency dramatically.