Trouble with Fonts being resized during PDF -> Tiff Conv.

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
Bojan

Trouble with Fonts being resized during PDF -> Tiff Conv.

Post by Bojan »

I have been playing around with IM and GhostScript for a full day now, looking through as much documentation as i can, and cannot figure this one out.

What i am doing is converting PDF documents to Group 4 Tiff.

there seem to be certain DPI limits at which certain fonts cease working.

for example, relative to the other text on the page.
Times new roman seems to look perfect at 248 DPI and above for font size 11 and up.
Times new roman at font size 10 does not look normal until 280 DPI or so.
Arial size 10 works at 248+, and size 11 from 228 or so.

I need to compress the images to 200DPI or below, because otherwise, for the throughput we are expecting, it wont work, rescaling works to lower the file size, but it adds another 2-3 seconds overhead to processing which wont do.

now the biggest problem i cannot work out.

why is text at 247 DPI less than 3/4 the size of text at 248 DPI.
Why is the text spacing at 247 DPI double the text spacing at 248 DPI?

any help would be much appreciated. The problem does not seem to replicate in Ghostscript. I have tried to only let GS/IM to use one font, but i'm not sure im doing that right, either.

Code i have been using is

Convert -monochrome -density xxx -compress Group4 xxxx.pdf xxx1.tif

Regards

Bojan
Bojan

Re: Trouble with Fonts being resized during PDF -> Tiff Conv

Post by Bojan »

I also have trouble with Italics

any italics i have tried converting so far from pdf to tiff have rendered as standard letters.
Bojan

Re: Trouble with Fonts being resized during PDF -> Tiff Conv

Post by Bojan »

nobody that can help with this?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Trouble with Fonts being resized during PDF -> Tiff Conv

Post by fmw42 »

I am not an expert on PDF, but you could try

convert -density xxx xxxx.pdf -monochrome -compress Group4 xxx1.tif

see http://www.imagemagick.org/Usage/basics/#cmdline

I don't know about the italic, but it may depend upon Ghostscript and GS fonts you have installed or perhaps freetype. Have you tried upgrading those as well as IM?

see http://www.imagemagick.org/Usage/formats/#pdf and http://www.imagemagick.org/Usage/formats/#tiff


I can never remember whether IM uses GS to read from PDF or to write to PDF.
Post Reply