Q:

Right-click convert PDF to JPG?

Looking for an easy way for one of my employees to convert PDF files to a JPG. I can do something in CLI, but he can't. It has to either be automated (less desirable), or a right click convert thing.
The reason being so that he can download a PDF from his email, and print it on a Zebra printer in glabel.
Suggestions?

A:

A right-click solution can also be nice in that it is faster and works also if you are off line.
No desktop environment was specified in the original question, so this answer will also be generic. Several file managers allow to define custom actions, which then can be executed by right-clicking the file.
A basic script to convert a PDF to jpg can be a one liner using one of several tools available. Using imagemagicks convert for example:
convert input.pdf output.jpg

will convert input.pdf into one or multiple jpeg files, sequentually numbered in the latter case.
Then it will depend on the file browser how this command can be incorporated into a script, and what placeholders need to be given to have input.pdf automatically substituted by the actual file name. For the default filemanager of Ubuntu 18.04, a how-to about adding your own script is provided here. A more powerful option that is not officially supported by the nautilus developpers, is provided by filemanager-actions. Users of Thunar can start here.

A:

I'd personally recommend using a web-based solution.  It won't be right-click, but your employee won't have to go into cli.  Just google "pdf to jpg" and you'll come up with tons of sites that will do it for you.  I hesitate to share links, since they can easily die, but several that I recognized right away and that I use from time to time are:

ilovepdf
smallpdf

And I found a few other options that I'm not familiar with, but would undoubtedly do the job as well:

pdf2jpg
pdftoimage

Advantages of web based are simple: a simple upload suffices.  The disadvantage is that if you have to convert sensitive information, you have no 100% guarantee that your information is not leaking anywhere.
Hope it helps!

