calling "composite" in order to overlay an image changing the font of a pdf

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
rc5wrc5w
Posts: 1
Joined: 2015-04-27T14:02:41-07:00
Authentication code: 6789

calling "composite" in order to overlay an image changing the font of a pdf

Post by rc5wrc5w »

Hi,

I've got a pdf over which I am trying to dynamically place an image (for watermarking purposes). No matter what I try, it seems to be changing the font of the pdf from its original font (century gothic) into something that looks like courier. Any ideas? I was trying to use:


/usr/local/bin/composite -density 300 -gravity center w.png inputfile.pdf outputfile.pdf

What can I do ? What am I doing wrong? Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: calling "composite" in order to overlay an image changing the font of a pdf

Post by fmw42 »

What version of IM and platform? What version of Ghostscript and libpng are you using? Does your system have have century gothic on it? What software created the original PDF? Please note that IM will rasterize and vector PDF. IM is not a good processor for vector files. See http://www.imagemagick.org/Usage/formats/#vector
Post Reply