Questions tagged [xfa]

XFA stands for XML Forms Architecture, a family of proprietary XML specifications that was suggested and developed by JetForm to enhance the processing of web forms. It can be also used in PDF files starting with PDF 1.5 specification. XML Forms Architecture was not standardized as an ISO standard

171 questions
19
votes
5 answers

Using iText (iTextSharp) to populate XFA form fields in PDF?

I need to populate XFA form fields in a PDF (created with Adobe LiveCycle Designer). We're attempting to use iText (actually iTextSharp with C#) to parse the PDF, populate the XFA fields and then save the modified PDF back out. All the examples I…
Jay Stevens
  • 5,863
  • 9
  • 44
  • 67
14
votes
1 answer

Creating XFA Form and Embedding it to a regular PDF

I have a PDF which doesn't contain XFA data. What I want to do is, create a XFA Form template programmatically (not by using Adobe LiveCycle or similar program) and then embed it to the PDF, then fill the XFA Form. Is this possible? Or do I have to…
guneykayim
  • 5,210
  • 2
  • 29
  • 61
12
votes
1 answer

PDF XFA File convert to "normal" PDF file

I´m searching for a way to convert PDF XFA files to normal PDF files which could be than processed and / or compressed via Imagemagick or ghostscript for example. All options I found are just removing the the XFA tags resulting in an empty file.…
Unomagan
  • 313
  • 1
  • 4
  • 9
10
votes
0 answers

How to calculate the checksum in an XFA form

When you save an XFA form (XFA = XML Forms Architecture) using Adobe software, a checksum attribute is added to the form element. This checksum appears to be a SHA-1 digest, but it's unclear as to what is actually fed to the hash. Does anyone have…
Bruno Lowagie
  • 75,994
  • 9
  • 109
  • 165
9
votes
3 answers

PDFTK not working to fill out pdf form created in livecycle

I created a form in livecycle es 2 and i am trying to use pdftk to fill out the form but it doesn't work. It says it fills it out successfully but when i try to open the pdf it just gives me an error saying "If this message is not eventually…
Brad Hazelnut
  • 1,603
  • 5
  • 21
  • 33
9
votes
1 answer

Extract xdp or xfa from PDF

I created a PDF form with Adobe LiveCycle Designer. I'm now struggling to extract the data programmatically from the PDF after it's been filled out. I tried to do this using poppler (the qt4 binding, but I guess that doesn't matter), but apparently…
arsenbonbon
  • 748
  • 9
  • 22
6
votes
1 answer

How to get a list of the fields in an XFA form?

I am trying to get a simple list of all the fields in my XFA form. I am using this code: private void ListFieldNames() { string pdfTemplate = @"C:\Projects\iTextSharp\SReport.pdf"; MemoryStream m = new MemoryStream(); // title the form …
priya
  • 121
  • 2
  • 3
  • 8
4
votes
1 answer

List attributes of an XFA Object using Javascript in a PDF

I'm trying to create a PDF document with several text fields that can grow in height up to some maximum value. Due to the constraints of the project, I'm using Adobe Designer 7, which happily allows Javascript. However, the objects in XFA are a…
allclaws
  • 5,575
  • 8
  • 30
  • 27
4
votes
3 answers

pdfbox. how to fetch fields of all kind of pdf forms

I am able to fetch the field names for most of the pdf files using pdfbox but i am not able to fetch fields income taxform. is it something restricted in that form. though it contains multiple fields in the form, it is showing only one field. This…
Baswa Prasad
  • 65
  • 1
  • 1
  • 8
4
votes
3 answers

Convert Livecycle dynamic fillable PDF to static fillable PDF (not to flattened PDF)

I have this unique situation where I need to convert the dynamic forms (XFA PDF) created by Livecycle ES4 Forms Designer into static forms (normal PDF). Please note that as mentioned in other posts and forums, 1. I used a print driver to save the…
ElevatedLyf
  • 116
  • 1
  • 2
  • 8
4
votes
1 answer

How to fill XFA form using iText?

Code: using (FileStream pdf = new FileStream("C:/test.pdf", FileMode.Open)) using (FileStream xml = new FileStream("C:/test.xml", FileMode.Open)) using (FileStream filledPdf = new FileStream("C:/test_f.pdf", FileMode.Create)) { …
paldir
  • 45
  • 1
  • 6
4
votes
2 answers

Detect dynamic XFA with iText

I need to make pre-populated PDF/XFA forms read-only (as in no inputs, such as text, checkboxes, radio buttons etc. can have their values changed). For regular AcroForms PDFs and static XFA forms, I can accomplish this by calling…
Abe Voelker
  • 30,124
  • 14
  • 81
  • 98
3
votes
2 answers

C# to read XFA form data

I am trying to programmatically read the field values from a Livecycle created form. I tried opening the document using the Acrobat COM component and it seemed to work and with some reflection I managed to get the actual field names, but the value…
Evenflow
  • 53
  • 1
  • 5
3
votes
2 answers

Auto-Fill I-9 PDF XFA Form

Good morning. I am hoping someone can help me on this topic. Last year I set up a VB.NET program using iTextSharp where a user could enter the information to fill the I9 and that information would fill in the PDF and print. With the new I9 I am…
Brenda
  • 43
  • 7
3
votes
0 answers

pdfbox 2.0 xfa fill field with java

I managed to modify the xml Document obtained with: PDDocumentCatalog docCatalog = _pdfDocument.getDocumentCatalog(); PDAcroForm acroForm = docCatalog.getAcroForm(); PDXFAResource xfa = acroForm.getXFA(); org.w3c.dom.Document documentXML =…
grugna
  • 73
  • 8
1
2 3
11 12