Page 1 of 1

Mogrify or composite on PDF makes it blurry

Posted: 2011-10-22T21:48:53-07:00
by noah++
Hi,

I'm trying to insert some text into a batch of PDF files, a set of identically laid out hockey scoresheets. First try:

Code: Select all

composite -compose atop -geometry +355+344 some_text.png original.pdf new.pdf
Second try:

Code: Select all

mogrify -draw "text 355,344 'some text'" original.pdf
Either way, the entire document gets pretty blurry -- not just the area around the text insertion. Here's a snippet of before:
Image

And here's after:
Image

The difference doesn't seem so bad to me on screen; but in print, which is where I need it, it looks awful. Is there something I could do better here?

Re: Mogrify or composite on PDF makes it blurry

Posted: 2011-10-22T22:52:48-07:00
by anthony
IM is a raster image processor, It converts the PDF into a array of pixels at a fixed resoltuion.\, which is by default 72dpi (screen resolution)

And while it can do what you are asking, The results is not likely to be what you are looking for.

See
A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector


But is you must do this, do it at least with 300dpi resoltuion.
That is add -density 300 to your command and multiply the draw offsets by 300/72