convert pdf to picture with only graphic layer

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Afternaf

convert pdf to picture with only graphic layer

Post by Afternaf »

Hello,

is it possible, to convert each page of pdf file to jpg, excluding text of this pdf?
pdf contain searchable text and graphic background.

trying to use pdftoppm(from xpdf) and imagemagick.

sorry for bad english.
Regards, Alex
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert pdf to picture with only graphic layer

Post by fmw42 »

Afternaf wrote:Hello,

is it possible, to convert each page of pdf file to jpg, excluding text of this pdf?
pdf contain searchable text and graphic background.

trying to use pdftoppm(from xpdf) and imagemagick.

sorry for bad english.
Regards, Alex

What do you mean "excluding text"?

convert image.pdf +adjoin image.jpg

should give you all the pages of the pdf as image-0.jpg, image-1,jpg etc
Afternaf

Re: convert pdf to picture with only graphic layer

Post by Afternaf »

fmw42 wrote:What do you mean "excluding text"?
without any text from pdf, only background image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert pdf to picture with only graphic layer

Post by fmw42 »

I don't think so. See http://www.imagemagick.org/Usage/formats/#pdf where it says
If you are more interested in the actual images that are contained within a PDF document you can have a look at the "pdfimages" program, which is part of either the "poppler-utils" or the "xpdf-utils" software packages. These software packages also contain many other tools that you can find useful for PDF processing.
Post Reply