Right now I'm using GThumb
to print images to PDF
but am looking for a short-cut.
Certainly there are console based utilities to convert files to PDF
but I'm looking to do that from the graphical interface. Presumably a print-to-PDF
script could be executed from the graphical interface.
Would there be a ready-made solution? Looking to avoid any configuration. Something like:
would be ideal.
You can create a nautilus script, i.e. an executable shell script (placed in a special scripts directory) that may be invoked by selecting a file or group of files in Nautilus, and right-clicking with the mouse, to bring up a context menu. One of the options in this menu is the 'Scripts' submenu, which allows you to select a script to invoke on the selected files. The submenu 'Scripts' only appears once you have at least one script in the scripts directory.
Follow these steps (replace every occurrencies of
<your_username>
with your real username):Create a script file:
gedit /home/<your_username>/.local/share/nautilus/scripts/Print
Paste the following content:
Save the file
Give it execution rights:
chmod +x /home/<your_username>/.local/share/nautilus/scripts/Print
Now, if you select one or more file, right-clicking them you should see the submenu 'Script' in your menu, and the subitem 'Print'.
If you don't see them, probably you need to logout and login, or reboot the system or restart nautilus (
nautilus -q && nautilus &
).You can print to pdf using all GUI applications.
Select "Print to File" and it will be saved as a PDF file.