Page 1 of 1

Re: pdf to image conversion

Posted: 2007-03-04T20:30:08-07:00
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.

Re: pdf to image conversion

Posted: 2007-03-05T03:37:58-07:00
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

Re: pdf to image conversion

Posted: 2007-03-05T04:26:55-07:00
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.

Re: pdf to image conversion

Posted: 2007-03-05T21:39:35-07:00
by pkashrai
Thank You for your reply..And hope this problem will be solved in near future..

With Regards
Prakash Rai