svenssonaxel / pdf-sign

A tool to sign PDF files. With Linux support.
MIT License
116 stars 3 forks source link

PDFs with forms #11

Open lesolorzanov opened 1 week ago

lesolorzanov commented 1 week ago

I tried this with a PDF with a form and the form stops working, it is rasterized, I was wondering if this was taken into account. Is pretty nice otherwise.

svenssonaxel commented 1 week ago

First, let's clarify:

pdf-sign should not rasterize anything, if it does then it's a bug. It does however flatten before signing, by design. This is since you usually would not want to change anything in the form after signing, even accidentally. You can turn off flattening with the --no-flatten command-line option.

I noticed that the help text does not inform the user that --flatten is on by default. This should be fixed.

@lesolorzanov Could you clarify if the behavior you see is rasterization or flattening? Did the above explanation help you?