I have a Static XFA PDF, that I wish to programmatically fill out. I can use the Xfa.FillXfaForm() method and this works well to update the XFA Dataset DOM. However, it does not update the corresponding Acroform field annotations (A Static XFA form has both an XFA form and an Acroform inside it). An XFA compliant renderer will pick up and read the XML Dataset Dom, however, many renderers such as Google Chrome and Firefox ignore the XFA dictionary, which means the form does not appear filled out there. Is there a way for iText to sync the Acroform and XFA values parts of the static form? I am using iTextSharp 5.
Filling out a Static XFA PDF using iText
394 Views Asked by jnicholas330 At
1
There are 1 best solutions below
Related Questions in PDF
- Itext get special letters from pdf
- Carrierwave file upload with different file types
- Get text from a section of a pdf page with IcePdf
- itext pdf to image convert
- PDF to Text extractor in nodejs without OS dependencies
- PDF to ByteArray Conversion
- Opening PDF file in SWT Browser - XulRunner default viewer
- Generate TCPDF output to a shared drive folder
- Combine base and ggplot graphics in R figure window in different pages
- Updating a PDF Barcode Field in iOS and Android Device
- Prevent PDFsharp from saving an image file?
- Adding attachment links between lines in itext for pdf
- Crop Pdf from each edge using itextshap
- How to create a PDF with iText+XMLWorker from servlet using custom font?
- how to create a pdf editor for grails
Related Questions in ITEXT
- Itext get special letters from pdf
- itext pdf to image convert
- Adding attachment links between lines in itext for pdf
- Crop Pdf from each edge using itextshap
- How to create a PDF with iText+XMLWorker from servlet using custom font?
- How to flatten pdf with Itext in c#?
- Parsing HTML into iText Elements while using XMLWorker
- Error in PDF Export
- I have a pdf from which I have to extract data and show but I am getting this exception, I'm not being able to figure out what is this Exception is?
- Watermark on pdf not working properlly
- Bulletins and Character numbering in PDF using iTextSharp c#
- iTextSharp large table: adding in chunks leaves visible gaps in the table
- I want to drag an image to my pdf file using itext java
- iText on a 10G database (1.4 JVM) generates a stacktrace
- insert arabic into pdf using itex java nullpointerException
Related Questions in XFA
- Adobe LiveCycle preload XML data from ASP.NET Microsoft SQL
- Filling out a Static XFA PDF using iText
- Auto-Fill I-9 PDF XFA Form
- iTextSharp get contents from PDF with XFA form
- How can I flatten a XFA PDF Form using iTextSharp?
- set PDF field read only using XFA
- How to transform attributes into tags using XSLT and avoid duplicates?
- Setting the output value of a dropdown based on the selected item in another dropdown in Livecycle
- Extract xdp or xfa from PDF
- XFA Creating Multiple Instances of a Page with iTextSharp
- C# to read XFA form data
- LiveCycle dynamic form that prints copies with different texts on each copy
- Cast exception with FieldPosition in XFAFlattener
- iTextSharp need to repeat table rows with textfield dynamically
- How to calculate the checksum in an XFA form
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
My answer and best advice would be... Don't!
If you're using Static XFA and your main concern is to have it display consistently in non-Adobe viewers and you have access to a decent library tool like iText, you're really better off stripping the XFA dictionary out of the PDF and just dealing with the AcroForm fields. Once you've got non-XFA aware and XFA aware viewers touching the PDF, deciding which set of data is the right set is problematic and field values vs. appearances can get out of sync. Any FormCalc scripts and expanding fields wouldn't be handled properly by the non-XFA viewers so there's really no advantage to having the XFA portion around at all.
During this process, you could build a map between the XML input and the AcroForm field names and store that in the document metadata so your application can easily populate the form as though it were still XFA but you wouldn't need to worry about synchronizing the data with two completely different and incompatible forms technologies in the same PDF. (Honestly, I'd love to know who thought that was a good idea in the first place)