CodeMonkey
CodeMonkey

Reputation: 135

All fillable fields clear when I open a pdf

In my program I load and edit .pdf files. These files print with the correct data in the fillable fields just fine. However when I save them to file and open them the fields contain data momentarily and then are cleared. I'm wondering if anyone has any insight as to why this is happening. I tried looking for javascript within the files that might be causing this and can't find any. I also tried recreating the fields and altering the reset button on the form so that it wouldn't clear anything, just in case something was calling it. I have researched this for most of the day and all my efforts have been fruitless. Any help would be greatly appreciated.

Upvotes: 0

Views: 3194

Answers (2)

plinth
plinth

Reputation: 49189

Page 1 in the additional actions (AA) dictionary has an action tree for the Page Opened event which is a reset form action. There's the culprit.

Upvotes: 1

Max Wyss
Max Wyss

Reputation: 3615

The form is secured. To noodle around with that form, you'd have to contact the issuer and ask for a non-secured version.

However, the symptoms look as if it has a reset on open functionality. As you have not found anything using JavaScript, the reset is not done with JavaScript, but as an Action. And Actions can be run from the pageOpen event.

Upvotes: 1

Related Questions