Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Fields with LiveCycle

Question

I have a PDF file was made with Adobe Acrobat 9 Pro. In this file there are 3 fields.

FirstName
LastName
Phone

I would like to list all fields with this code :

for i := 1 to MyPDF.FormFieldCount do
   memo1.lines.add(MyPDF.GetFormFieldTitle(i)

All works fine and the memo1 look like :

FirstName
LastName
Phone

But if i open the same PDF file with Adobe LiveCycle Designer ES 8.2 ans save it. And run the same code above with the file that saved with LiveCycle, the memo1 look like :

topmostSubform[0]
topmostSubform[0].Page1[0]
topmostSubform[0].Page1[0].FirstName[0]
topmostSubform[0].Page1[0].LastName[0]
topmostSubform[0].Page1[0].Phone[0]

There are 5 lines instead of 3 and the GetFormFieldTitle function return a "path" with field name

Quick PDF Library is it compatible with LiveCycle ?

Answer

Try using the XFA form field functions. They usually work with XFA LiveCycle forms quite well. I agree it is not obvious but Acrobat seems to create duplicate AcroForm fields and XFA fields and the standard form field functions mostly work but not always as expected.

ret = QP.SetXFAFormFieldValue("form1[0].#subform[0].ReportCreatedOnDate[0]", "25/12/2011");
ret = QP.SetXFAFormFieldValue("form1[0].#subform[0].PatientNumber[0]", "PAT123456");
ret = QP.SetXFAFormFieldValue("form1[0].#subform[0].MeasDate[0]", "01/01/2011");

Quick PDF Library doesn't support all of the features of XFA forms generated in LiveCycle but we are adding more functionality slowly to the library.

The first two form fields are parent fields and are created by default in Acrobat. You may want to try the other XFA form field functions available in the library.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum