3

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?

2

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:

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


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!

  • Thanks, didn't think of this! – bigmillz Apr 17 '18 at 18:49
  • @bigmillz if it answered your question, feel free to mark it as accepted to help future users. – anonymous2 Apr 17 '18 at 18:59
  • It mostly works...the online converters don't preserve the file at a high enough resolution it turns out. I wish glabel would accept a PDF! – bigmillz Apr 17 '18 at 20:46
  • @bigmillz try this one: can you get high enough? At fixed DPI, you can get up to 600 dpi. – anonymous2 Apr 17 '18 at 20:48
  • Oh, wait, looks like you can actually go as high as 2400. – anonymous2 Apr 17 '18 at 20:48
4

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.

protected by Community Jul 17 '18 at 11:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.