Elsifo
Elsifo

Reputation: 29

Is there a way to execute a PDF field script while filling its form with pdftk?

I've been tasked to fill a pre-made PDF form via a Symfony app. I'm using this pdftk wrapper to do the job, but there's an issue.

This PDF uses some scripts for hiding/showing some field: for example, they trigger when a radio button has been selected. When i fill the form with pdftk, the radio fields are changed correctly, but those scripts aren't executed, since those fields haven't been interacted by a human, i'm guessing.

I've already tried the flatten and need_appearances options to try to force their execution, but with no avail.

Is there a way to trigger these events from pdftk, or showing/hiding manually those fields, or there's an alternative to pdftk that does the trick? Keep in mind, i can't edit in any way the PDF, since it's an official document (in case you need it, this is the PDF)

Thank you!

Upvotes: 0

Views: 228

Answers (0)

Related Questions