Best Way to Place Image in PDF
Posted: 2019-02-07T13:49:51-07:00
I have an image of my signature (a transparent PNG at 144dpi) that I would like to place in a blank PDF page to be used with PDFtk's stamp functionality. This is the command line I have developed so far:
There are several things I don't like about this:
Code: Select all
magick -density 300 -size 2550x3300 xc:transparent \( signature_transparent.png -resize 90% \) -geometry +150+2604 -composite largesig.pdf
- do I need the "sub image" in the parentheses?
- I had to specify -density 300--without it, the signature was very pixelated
- because of the specified -density, I could not use -page letter--I got pages too small by a factor of 72/300=0.24, so I had to manually calculate the -size geometry