pypdftk
pypdftk copied to clipboard
Can we embed image with this also?
I am looking for a way to embed images in the fillable PDF. Is there any possibility with this?
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