PDF to Tif 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
TheBigS

PDF to Tif conversion

Post by TheBigS »

Hello,

i think i found every topic with pdf 2 tif conversion, but no topic gave me the right answer.

i need to convert a pdf file to monochrom (multipage) tif. it is no problem, but the quality of the tif file is not realy nice.

i use the following command:

convert -units PixelsPerInch -density 196x196 test.pdf -resize 1620x2292! -type bilevel -compress Group4 test.tif

you can see the result here:
http://www.gutekunst-is.de/tif/lorem_im.tif

i have another tif converter (windows) which gave me the following better result:
http://www.gutekunst-is.de/tif/lorem_referenz.tif

you can see that the bold text is not bold in the im convertet file. i need a very good result. is there anybody who can say what options i have to use, to get a better image result?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PDF to Tif conversion

Post by magick »

Can you post the original PDF image? We have a few ideas we want to try before we post a solution.
TheBigS

Re: PDF to Tif conversion

Post by TheBigS »

of course, no problem. here is the original pdf file:
http://www.gutekunst-is.de/tif/lorem.pdf

i am very curious to read your ideas :)

thank you!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PDF to Tif conversion

Post by magick »

ImageMagick uses Ghostscript to render PDF before it converts it to the raster format of your choice. Ghostscript complains with

**** Warning: Fonts with Subtype = /TrueType should be embedded.
But Arial-BoldMT is not embedded.
**** Warning: Fonts with Subtype = /TrueType should be embedded.
But ArialMT is not embedded.

which means it is using the default font of Helvetica or Times or whatever it is instead of Arial. For this particular problem you need to include the Arial font with the Ghostscript distribution or embed the font into your PDF as it suggests.
TheBigS

Re: PDF to Tif conversion

Post by TheBigS »

thank you for your hint. when i am embeding the fonts in the pdf file, my result is very good.

but is it possible to giv ghostscript the needed fonts? where must they put in and what file formats? i found some fonts in afm format and i puted into "/usr/share/ghostscript/fonts". but my result is also not good.

where did you found the warning message from ghostscript? when i am using converter with -verbose, i dont get the error message.
Post Reply