Strange behaviours with form fields
Posted: Thu Nov 12, 2015 3:57 pm
Hello,
we have to fill form-fields in pdf documents. In my prototype I'm using a JavaScript to get the list of fields of the pdf and set the value of the field depending on it's type.
I'm using the current PdfXChange Viewer SDK v2.5.0313.0001 and your demo "JavaScript" application.
There are some strange behaviours with various pds documents. These documents, screenshots and the script are attached in a zip.
Pdf_01.pdf
After running the script textfields and checkboxes are filled in the whole pdf.
=> ok
See Screenshots Pdf_01_*
Pdf_02.pdf
After running the script textfields and checkboxes seemed to be not filled. But after clicking in some textfields you can see that they have values set.
Im shure, that even some checkboxes are "checked", because on the second run the values in output are "checked = true". But other checkboxes are not checked.
There seems to be an update-problem in the gui?
=> not ok
See Screenshots Pdf_02_*
What's going wrong? How can I change my script to get a reliable result?
What is the correct way to check or uncheck all checkboxes?
How can I avoid the refesh-problem?
Greetings
Hans-Peter
we have to fill form-fields in pdf documents. In my prototype I'm using a JavaScript to get the list of fields of the pdf and set the value of the field depending on it's type.
I'm using the current PdfXChange Viewer SDK v2.5.0313.0001 and your demo "JavaScript" application.
There are some strange behaviours with various pds documents. These documents, screenshots and the script are attached in a zip.
Pdf_01.pdf
After running the script textfields and checkboxes are filled in the whole pdf.
=> ok
See Screenshots Pdf_01_*
Pdf_02.pdf
After running the script textfields and checkboxes seemed to be not filled. But after clicking in some textfields you can see that they have values set.
Im shure, that even some checkboxes are "checked", because on the second run the values in output are "checked = true". But other checkboxes are not checked.
There seems to be an update-problem in the gui?
=> not ok
See Screenshots Pdf_02_*
What's going wrong? How can I change my script to get a reliable result?
What is the correct way to check or uncheck all checkboxes?
How can I avoid the refesh-problem?
Greetings
Hans-Peter