add text by "annotate"

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?".
Locked
danieles1981
Posts: 1
Joined: 2017-01-09T05:02:54-07:00
Authentication code: 1151

add text by "annotate"

Post by danieles1981 »

Hi,
I've to add a text to a pdf. I use:

Code: Select all

convert /home/1.pdf -fill black -gravity South -annotate +0+15 'some text here' /home/2.pdf
How can I keep original text resolution?

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: add text by "annotate"

Post by magick »

You PDF is likely vector based-- if so you'll need a PDF editor to add text to the image. If you intent was to rasterize the image and annotate it, use super-sampling like this:

Code: Select all

convert -density 300 /home/1.pdf -fill black -gravity South -annotate +0+15 'some text here' -resize 25% /home/2.pdf

User avatar
anthony
Posts: 8884
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: add text by "annotate"

Post by anthony »

See...

A Word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Locked