I'm writing a small application to convert several multipage PDF's to multipage TIFF files. Per the other questions and answers on this site, I've tried both ghostscript and ImageMagick however both pieces of software only covert the first page when I run them. Are there any other tools I can use to accomplish this, preferably open source ones?
This Online PDF Converter can convert all your files to PDF but also compress and merge PDF files! Word, Excel, PowerPoint, images and any other kind of document can be easily converted to PDF on Online2PDF.com! We have several 1000s PDF files need to convert to TIFF format in batch mode. During my initial test using Adobe pro Action Wizard I observed that one PDF file is converting to multiple TIFF files based on no of pages. For example 3 page single PDF fi.
closed as off-topic by rene, Matthew Bakaitis, AstroCB, Peter Pei Guo, Shankar DamodaranFeb 18 '15 at 0:24
This question appears to be off-topic. The users who voted to close gave these specific reasons:
'Questions seeking debugging help ('why isn't this code working?') must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example.' – Matthew Bakaitis, AstroCB, Shankar Damodaran
'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – rene, Peter Pei Guo
If this question can be reworded to fit the rules in the help center, please edit the question.
2 Answers
Actually Ghostscript can convert a multi-page PDF into a multi-page TIFF. Just be sure to have a rather recent version of Ghostscript installed. Be careful when examining the resulting TIFF as your viewer may not show all the pages of the TIFF or it may not be apparent how to advance to subsequent pages in the TIFF.
The tiffg4 one is grayscale and uses a resolution of 204dpi by 196dpi (as the TIFF G4 fax standard requires).
The tiff24nc one is in RGB color (with 8 bits per color component) and uses a resolution of 72dpi by 72dpi.
The tiff32nc one is in CMYK color (with 8 bits per color) also using a resolution of 72dpi.
There are a number of additional output devices for TIFF at the link above.
All the resolution values for the TIFF files result from Ghostscript's default settings. If you want to override these, for example because you require 600dpi by 600dpi, just add
to any of the above commandlines.
To prove that you have multipage TIFFs, use the following command:
(identify is a command from the ImageMagick package, which you seem to have installed anyway.) As a result, you should see multiple lines for each of the *.tif files -- with each line representing 1 page of the respective *.tif.
I suspect it may have worked all the way for you -- that you were just unable to recognize the multiple pages in your resulting TIFFs. Not all TIFF viewers are able to display these -- they display the first page only if they can't otherwise, which may have fooled you.