XFA is just an XML format.  I'm pretty sure Leonard posted a link to the
spec a while back on this list.  Your favorite archive site should have
it.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: Craig Garvis [mailto:[email protected]] 
> Sent: Thursday, August 19, 2010 12:35 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] iText Flattening causing data 
> loss/distortion?
> 
> A question to Leonard, can I manually check this? Is there 
> something I can read on how to check the XFA in a Hex editor?
> ________________________________________
> From: Leonard Rosenthol [[email protected]]
> Sent: Wednesday, August 18, 2010 3:26 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] iText Flattening causing data 
> loss/distortion?
> 
> There's a way to tell by looking in the XFA as well.  I wrote 
> up the details for the PDF/UA standard, if someone wants to 
> add the check to iText.
> 
> Leonard
> 
> -----Original Message-----
> From: Mark Storer [mailto:[email protected]]
> Sent: Wednesday, August 18, 2010 4:05 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] iText Flattening causing data 
> loss/distortion?
> 
> > With regards to the LiveCycle question, I do get a non-null 
> response 
> > when I call getXFA() on the AcroFields object, I do also get this 
> > response on forms that seem unaffected by the blanking issue.
> 
> That would be the difference between "static" and "dynamic" XFA forms.
> Static forms have all the PDF infrastructure already in 
> place, and iText can work with that (mostly).  Dynamic forms 
> have no PDF fields matching the ones defined in their XFA... 
> iText has no idea how to render them, so such forms remain blank.
> 
> How do you tell the difference?  Hmm... There's no such 
> function in the XfaForm object... Here's a plan.  Check the 
> first few pages for annotations or page content.  If they 
> lack both, it's a dynamic XFA form.  If it has them, it's 
> (probably) a static form.
> 
> If you know there's a field named X, you can query the 
> AcroForm for that field's merged dictionary (or widget, or 
> whatever).  If it cannot find it, it's dynamic.
> 
> --Mark Storer
>   Senior Software Engineer
>   Cardiff.com
> 
> import legalese.Disclaimer;
> Disclaimer<Cardiff> DisCard = null;
> 
> 
> 
> > -----Original Message-----
> > From: Craig Garvis [mailto:[email protected]]
> > Sent: Tuesday, August 17, 2010 5:21 PM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] iText Flattening causing data 
> > loss/distortion?
> >
> > Thanks Mark,
> >
> > I am flattening forms before I attempt to merge them into 
> the combined 
> > document. I have also seen cases where merging a form with 
> a PDF file 
> > containing no fields shows the same results.
> >
> > No scripting was used in the forms to control the visibility of the 
> > fields.
> >
> > All form fields are configured to be visible when printed.
> >
> > Also I'm using the build of iText you helped us with at Stryker for 
> > handling combo boxes. I'm not sure of the exact version (is there a 
> > file in the jar I can check?)
> >
> >
> 
> >
> > ________________________________________
> > From: Mark Storer [[email protected]]
> > Sent: Thursday, August 12, 2010 4:13 PM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] iText Flattening causing data 
> > loss/distortion?
> >
> > Help us understand your situation a bit better.
> >
> > > I have found there are some PDF forms that will either no
> > longer show
> > > fields or forms for which combo boxes reset to their 
> default values 
> > > when used with this scenario.
> >
> > Are you flattening these forms before or after you merge them?  You 
> > should always flatten forms prior to merging them.
> >  Fields with the same name all have the same value.  If one of your 
> > fields "FirstName" was empty, all the fields named 
> "FirstName" can be 
> > empty.  IIRC the value of the first version of a given field is 
> > preserved, though I'm far from certain.
> >
> > Are these forms AcroForms or LiveCycle forms?  iText has a 
> variety of 
> > limitations when it comes to LiveCycle forms.
> > Flattening dynamic LiveCycle forms Just Wont Work, none of 
> the fields 
> > appear.  If
> > AcroFields.getXFA() doesn't return null, it's a LiveCycle form.
> >
> > Was the visibility of the fields that disappeared controlled by 
> > script?
> > iText doesn't run script.  At all.
> >
> > Were the vanishing fields set to be invisible while printing?
> >  iText treats flattening as printing as far as field 
> visibility goes.
> >
> > What version of iText are you using?
> >
> >
> >
> > --Mark Storer
> >   Senior Software Engineer
> >   Cardiff.com
> >
> > import legalese.Disclaimer;
> > Disclaimer<Cardiff> DisCard = null;
> >
> >
> >
> > > -----Original Message-----
> > > From: Craig Garvis [mailto:[email protected]]
> > > Sent: Thursday, August 12, 2010 11:51 AM
> > > To: [email protected]
> > > Subject: [iText-questions] iText Flattening causing data 
> > > loss/distortion?
> > >
> > > I am using the iText library in conjunction with a ColdFusion web 
> > > server to merge a group of PDF files into one document. I
> > enable the
> > > document flattening on each PDF and in the general case,
> > the documents
> > > are merged without incident. I have found there are some 
> PDF forms 
> > > that will either no longer show fields or forms for which
> > combo boxes
> > > reset to their default values when used with this scenario.
> > I cannot
> > > publicly post the PDF files but I can provide them via
> > email or FTP on
> > > request.
> > >
> > >  I am looking for measures to detect affected documents 
> and either 
> > > resolve the issue or use some alternate method to produce a
> > combined
> > > result.
> > >
> > >
> > > --------------------------------------------------------------
> > > ----------------
> > > This SF.net email is sponsored by
> > >
> > > Make an app they can't live without
> > > Enter the BlackBerry Developer Challenge 
> > > http://p.sf.net/sfu/RIM-dev2dev 
> > > _______________________________________________
> > > iText-questions mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > > Buy the iText book: http://www.itextpdf.com/book/ Check the
> > site with
> > > examples before you ask questions:
> > > http://www.1t3xt.info/examples/ You can also search the
> > keywords list:
> > > http://1t3xt.info/tutorials/keywords/
> > >
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG - www.avg.com
> > > Version: 9.0.851 / Virus Database: 271.1.1/3060 - Release
> > > Date: 08/11/10 23:34:00
> > >
> >
> > --------------------------------------------------------------
> > ----------------
> > This SF.net email is sponsored by
> >
> > Make an app they can't live without
> > Enter the BlackBerry Developer Challenge 
> > http://p.sf.net/sfu/RIM-dev2dev 
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > Buy the iText book: http://www.itextpdf.com/book/ Check the 
> site with 
> > examples before you ask questions:
> > http://www.1t3xt.info/examples/ You can also search the 
> keywords list: 
> > http://1t3xt.info/tutorials/keywords/
> >
> >
> > --------------------------------------------------------------
> > ----------------
> > This SF.net email is sponsored by
> >
> > Make an app they can't live without
> > Enter the BlackBerry Developer Challenge 
> > http://p.sf.net/sfu/RIM-dev2dev 
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > Buy the iText book: http://www.itextpdf.com/book/ Check the 
> site with 
> > examples before you ask questions:
> > http://www.1t3xt.info/examples/ You can also search the 
> keywords list: 
> > http://1t3xt.info/tutorials/keywords/
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com
> > Version: 9.0.851 / Virus Database: 271.1.1/3068 - Release
> > Date: 08/17/10 23:35:00
> >
> 
> --------------------------------------------------------------
> ----------------
> This SF.net email is sponsored by
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge 
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/ Check the 
> site with examples before you ask questions: 
> http://www.1t3xt.info/examples/ You can also search the 
> keywords list: http://1t3xt.info/tutorials/keywords/
> 
> --------------------------------------------------------------
> ----------------
> This SF.net email is sponsored by
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge 
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/ Check the 
> site with examples before you ask questions: 
> http://www.1t3xt.info/examples/ You can also search the 
> keywords list: http://1t3xt.info/tutorials/keywords/
> 
> 
> --------------------------------------------------------------
> ----------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge 
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/ Check the 
> site with examples before you ask questions: 
> http://www.1t3xt.info/examples/ You can also search the 
> keywords list: http://1t3xt.info/tutorials/keywords/
> 
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to