pypdftk icon indicating copy to clipboard operation
pypdftk copied to clipboard

Can we embed image with this also?

Open abuzer opened this issue 4 years ago • 1 comments

I am looking for a way to embed images in the fillable PDF. Is there any possibility with this?

abuzer avatar Jan 27 '21 17:01 abuzer

Yes, you can.

Please follow the link to the StackOverflow post. https://stackoverflow.com/questions/48769868/how-to-fill-image-in-pdf-file-using-pdftk

TL;DR;

You need to create a separate PDF (A.pdf) containing the image that you want to add to another PDF (B.pdf). Then, you'll need to use the stamp functionality of pdftk, to stamp A.pdf onto B.pdf.

You cannot directly fill an image with a fillable PDF.

Here's a link to another post, that shows how to add signatures to PDF. https://gist.github.com/epcim/750628421192b38e5096

tigerjoy avatar Mar 21 '21 12:03 tigerjoy