Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

PDF forms and check boxes 4 years 4 months ago #14789

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Dear Michele,

Can you confirm this new behaviour is correct and adhering to PDF form specifications?

Yes, we've implemented it according to PDF reference (version 1.7, chapter 8, section 8.6.3 (Check Boxes))

We've checked this behavior on Acrobat and many other readers and they all behave the same.

Please Log in or Create an account to join the conversation.

PDF forms and check boxes 4 years 4 months ago #14792

  • noberasco
  • noberasco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 48
  • Thank you received: 0
Hi nermeen,

thank you for this feedback.
This actually simplifies matters, as a single check box field can now hold a single value.
I will have to make some adjustments to my templates, but I'm fine with this.

There is still a bug, though: ExportForm() does not behave correctly with the new check box value handling.
If you change check box values, ExportForm() returns the correct values.
However, if you open the document without changing check box values, ExportForm() returns false for all check box values.

Note: radio buttons are not affected by this, only check boxes.

While I am it it, ExportForm() has several other issues...
Maybe I should open a separate threads for them?

Regards,
Michele

Please Log in or Create an account to join the conversation.

PDF forms and check boxes 4 years 4 months ago #14794

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this version also adjust the export value, following shows the export value:
<?xml version="1.0" encoding="UTF-8"?>
<fields>
<Check Box1>Off</Check Box1>
<EST-MESE-1></EST-MESE-1>
<EST-MESE-2></EST-MESE-2>
<EST-ANNO-1></EST-ANNO-1>
<EST-ANNO-2></EST-ANNO-2>
<OXY-MESE-1></OXY-MESE-1>
<OXY-ANNO-1></OXY-ANNO-1>
<OXY-MESE-2></OXY-MESE-2>
<OXY-ANNO-2></OXY-ANNO-2>
<OXY-MESE-3></OXY-MESE-3>
<OXY-ANNO-3></OXY-ANNO-3>
<OXY-MESE-4></OXY-MESE-4>
<OXY-ANNO-4></OXY-ANNO-4>
<Check Box2>Yes</Check Box2>
<SOC-MESE-1></SOC-MESE-1>
<SOC-ANNO-1></SOC-ANNO-1>
<SOC-MESE-2></SOC-MESE-2>
<SOC-ANNO-2></SOC-ANNO-2>
<id-loco></id-loco>
<km-LOCO></km-LOCO>
<id-loco-1></id-loco-1>
<id-loco-2></id-loco-2>
<guasto-1></guasto-1>
<guasto-2></guasto-2>
<guasto-3></guasto-3>
<guasto-4></guasto-4>
<guasto-5></guasto-5>
<guasto-6></guasto-6>
<guasto-7></guasto-7>
<guasto-8></guasto-8>
<Data></Data>
<Ora></Ora>
<commento1></commento1>
<commento2></commento2>
<commento3></commento3>
<binario></binario>
<varie></varie>
<data_HU></data_HU>
</fields>
which "Check Box1" is not checked and "Check Box2" is checked.
"Check Box1" and "Check Box2" only has single value for whole group.

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

PDF forms and check boxes 4 years 4 months ago #14795

  • noberasco
  • noberasco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 48
  • Thank you received: 0

this version also adjust the export value


Indeed it does... until you close and reopen the PDF document.
If you close and reopen the document and call ExportForm() without otherwise interacting with the document, 'Off' will be returned for all checkbox fields.

Please Log in or Create an account to join the conversation.

PDF forms and check boxes 4 years 4 months ago #14796

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
thanks, we shall check it and fix it.

Please Log in or Create an account to join the conversation.

PDF forms and check boxes 4 years 4 months ago #14797

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
fixed, plz wait...

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum