robbat2: (Default)
robbat2 ([personal profile] robbat2) wrote2012-08-03 03:15 pm
Entry tags:

Making transparent PDFs in Linux

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

[identity profile] john syers (from livejournal.com) 2013-12-04 11:18 pm (UTC)(link)
It helped me. Thanks!