5

I am looking for something like a graphical interface / front end for Imagemagick or a simpler application that would allow converting/extracting images from pdf files through the interface (not in the Terminal).

2 Answers 2

5

(The question poser added 'not in the terminal' only after I had posted this; however, it still stands as a relevant answer and useful for people, particularly regarding the evince point, which is a graphical app)

You can extract individual pictures from the pdf reader evince just by clicking and dragging them onto the desktop; sometimes you have to click more than once, but it generally works and I have found it really useful! Also, if you right click the image in the pdf you can save it in another image format instead of the default .png.

To extract all images from a pdf, you can use pdfimages, which is part of the poppler-utils, and is in the repository, although you probably have it installed anyway. That package has a number of other tools as well. To extract images in jpg (and the program's native format,ppm), just enter pdfimages -j name.pdf <picture name>. Call the picture name whatever you want, and the images will be successively labelled as dog1.jpg, etc. You can obviously specify absolute locations if you want with pdfimages -j ~/KeyGuides/TSENG.PDF ~/Scripts/DOG (where DOG is not a directory, but the name the pictures will use).

Pdfimages is quite a simple program, but I'll see if I can find any other tools, as I manipulate images/pdfs a lot too.

9
  • I have a lot of images (book pages and drawings) that I would like to see in sequence so I am interested more in the other way around: from images to pdfs. I can do it in imagemagick but I was wandering whether I could use a special front-end in the future and my question refers to that: avoiding the Terminal.
    – user47206
    Jul 20, 2012 at 21:58
  • It might be possible to write a script that would do that, so I'll have to think about it. Do you mean you want a lot of the pictures in the same pdf?
    – user76204
    Jul 20, 2012 at 22:03
  • yes. Thank you, but don't bother. that works ok with imagemagik, so I was just wandering whether I may be ignoring something like Gimp but that saves as pdf. You know, a program already created that I might find by asking here. The answer is 'no' to that I guess.
    – user47206
    Jul 20, 2012 at 22:06
  • I'll see if I find some other program, as I am interested in a gui alternative, even though imagemagick and pdfimages are very good tools.
    – user76204
    Jul 20, 2012 at 22:10
  • (sorry, but mentioning 'GUI' from the start I was excluding the terminal: " A graphical user interface (GUI) is a human-computer interface (i.e., a way for humans to interact with computers) that uses windows, icons and menus and which can be manipulated by a mouse (and often to a limited extent by a keyboard as well).GUIs stand in sharp contrast to command line interfaces (CLIs)"). your answer stands and I upvoted it
    – user47206
    Jul 20, 2012 at 22:13
2

A GUI to convert images to/from pdf is gscan2pdf.

I found about it here. More here.

enter image description here

It allows importing a pdf and saving images in (various) formats,

enter image description here enter image description here

and also importing images and saving them in pdf-format

enter image description here

So, the program is able to convert between the following formats: pdf, gif, jpeg, png, pnm, ps, tif, djvu.

2
  • I get such rapid good answers in askubuntu that I got the habit of asking here before searching the web. So, after doing both, I got the above.
    – user47206
    Jul 20, 2012 at 22:39
  • I checked my own answer as the definitive because the question demanded:1. a graphic (GUI), not a command line (CLI) interface for a program that - 2. would convert/extract both ways between pdf and images
    – user47206
    Jul 24, 2012 at 13:52

You must log in to answer this question.