Print Page | Close Window

FlattenAllFormFields don't flatten radio button

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3795
Printed Date: 29 Mar 24 at 1:21PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: FlattenAllFormFields don't flatten radio button
Posted By: Puty
Subject: FlattenAllFormFields don't flatten radio button
Date Posted: 09 Mar 20 at 1:30PM
Hi,

I found issue in the Debenu PDF library. 
Whenever I call the FlattenAllFormFields method, all form fields are flatten, but radio button groups don't.

This pdf was flatten and signed via Debenu. When you open it in Adobe Reader you can see active radio button groups, but other form field are correctly flatten.

http://drive.google.com/file/d/17oCLEZtNcThvqYhJc22EXAvXx1chbmmV/view?usp=sharing" rel="nofollow - https://drive.google.com/file/d/17oCLEZtNcThvqYhJc22EXAvXx1chbmmV/view?usp=sharing

Please how can I flatten radio button groups? 




Replies:
Posted By: Ingo
Date Posted: 10 Mar 20 at 10:16PM
Hi Puty,


here in the forum there's an important sentence from AndrewC (R.I.P.):
"FormField flattening works much better in reverse because you can flatten the children before flattening the parent objects".
Perhaps this is the initial thing you should have an eye on?

FlattenAllFormFields still offers things for future options and isn't closed.
Try the normal FlattenFormFields in reverse order and see if it works better for you.



-------------
Cheers,
Ingo



Posted By: Puty
Date Posted: 11 Mar 20 at 9:25AM
Hi Ingo,

I also tried the "flattenFormField (id)" method. 
If the field type == 4 (radiobutton), I get his children through the "let subId = getFormFieldKidTempIndex (id, i)" method, where 'i' is the iterated number of children. 
If I used this subId as an input to the "flattenFormField(subId)" method, but radio buttons wasn't flatten.

Please do you have any code that will make flatten on radio button group?


Posted By: Ingo
Date Posted: 11 Mar 20 at 7:24PM
Hi Puty,

i don't have a sample.
Try the forum here (the samples section).
Try the online reference and the built in search functionality.
Try the developer guide.
Sometimes the sequence in doing something is important...



-------------
Cheers,
Ingo



Posted By: Puty
Date Posted: 12 Mar 20 at 11:35AM
Hi Ingo,

I tried everything you wrote, but nothings works. 
I think it's a bug in Debenu and it doesn't work.


Posted By: Ingo
Date Posted: 13 Mar 20 at 8:46PM
Which version do you use?
Not the latest?



-------------
Cheers,
Ingo



Posted By: Puty
Date Posted: 17 Mar 20 at 10:02AM
Hi Ingo,

I use Debenu version 17.


Posted By: Ingo
Date Posted: 17 Mar 20 at 8:21PM
I've checked your pdf now.
You didn't tell us that it's made with the iOS-version of the library.
Most knowledge exchange here is depending on the windows version of the library.
When i open the pdf with the acrobat reader, adobe is telling me that there are probs with at least one signature.
Perhaps this points to an error?
If i count all form fields of your pdf the result is one and this form field is the signature field.
Never the less i can still change the radio form fields.
I think that you've made some mistakes using the loop and the correct sequence flattening the form fields.
I fear without your code posted here nobody will be able to point you in the right direction.
Sorry.



-------------
Cheers,
Ingo



Posted By: Puty
Date Posted: 01 Apr 20 at 10:32AM
Hi Ingo,

I wrote support and it's a bug. They'll try to fix it.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk