pdf to image conversion

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: pdf to image conversion

Post by anthony »

The best way is a PDF utility. The IM way is to read and create 'page images' then count the images. using identify -format %n not very nice.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
pkashrai

Re: pdf to image conversion

Post by pkashrai »

I tried to find the page number of .pdf file using:

Code: Select all

identify -format %n text.pdf
I got correct page number of the .pdf file that contains images but the problem is with the .pdf files that contains text. I can see 6 pages in .pdf but IMagick returns only page 4 with lots of error messages..Error messages also can't be made quiet with -quiet option. I want to know, ImageMagick can't handle .pdf files that contains text?? Any help will be appreciated..

With Regards,
Prakash Rai
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: pdf to image conversion

Post by anthony »

Actually it is probably more like you current ghostscript can't handle the PDF. IM calls ghostscript to do the convertsion of postscript, and PDf to a raster image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
pkashrai

Re: pdf to image conversion

Post by pkashrai »

Thank You for your reply..And hope this problem will be solved in near future..

With Regards
Prakash Rai
Post Reply