Mogrify or composite on PDF makes it blurry

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
noah++
Posts: 1
Joined: 2011-10-22T21:36:44-07:00
Authentication code: 8675308

Mogrify or composite on PDF makes it blurry

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Mogrify or composite on PDF makes it blurry

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply