Print Page | Close Window

Flatten Field Options

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1176
Printed Date: 29 Sep 24 at 8:32AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Flatten Field Options
Posted By: Shotgun Tom
Subject: Flatten Field Options
Date Posted: 15 Aug 09 at 5:50PM
It would be tremendously helpful to have a couple more options/functions for flattening form fields.  Seldom does one need to flatten a single field.  Ranked in order of importance, IMO, the functions would be:
 
1.  FlattenAllFormFields
2.  FlattenAllFilledFormFields
3.  Flatten AllUnFilledFormFields
 
Would be very, very helpful!



Replies:
Posted By: Ingo
Date Posted: 17 Aug 09 at 6:12AM
Hi!

At least FlattenAllFormFields isn't really necessary.
It's only a loop: FormFieldCount and then Flatten...
Your suggestions 2/3 don't make sense for me.
After Flatten a form isn't a form any longer.

Cheers, Ingo


Posted By: Shotgun Tom
Date Posted: 17 Aug 09 at 7:58AM
I understand it's a loop and that's the way I'm using it now.  As a matter of fact you can programatically do all three suggestions through coding.  For example loop through all fields and if they have no value then flatten... etc. Just suggesting a single function call instead of programming loops.
 
For item 2... there are instances where a single form is filled out over a period of time.  As the user fills the form and saves it those fields are flattened.  When reloaded, the previous fields completed are no longer form fields but the ones left to be completed are still available as form fields.
 
For item 3... When certain fields are completed on a form and transmitted to another for editing etc. you want that other party to be able to edit entries but not fields with no content. 
 
There are several applications for 2 and 3 in the real world... especially legal and government forms.
 
Thanks, Tom



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