Making transparent PDFs in Linux
Aug. 3rd, 2012 03:15 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Just documenting this again, so I don't forget it, and it might help others too.
Specifically, how to make a PDF with transparency, using ImageMagick, so that it can be used as a stamp for PDFTK. This requires a PNG with transparency as input.
convert $INPUT.PNG -transparent white -background none $OUTPUT.PDF
pdftk $FORM.PDF stamp $OUTPUT.PDF output $COMPLETED_FORM.PDF
Specifically, how to make a PDF with transparency, using ImageMagick, so that it can be used as a stamp for PDFTK. This requires a PNG with transparency as input.
convert $INPUT.PNG -transparent white -background none $OUTPUT.PDF
pdftk $FORM.PDF stamp $OUTPUT.PDF output $COMPLETED_FORM.PDF