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
391 Views Asked by jnicholas330 At
1
There are 1 best solutions below
Related Questions in PDF
- how to turn characters in wrong codec into space in python?
- erlang os:cmd() command with UTF8 binary
- How to encode bytes as a printable unicode string (like base64 for ascii)
- weird characters in utf-8 encoded file
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Detecting corrupt characters in UTF-8 encoded text file
- Why does opening a file in two different encodings work as expected?
- Is there any function like iconv in Python?
- Control encoding when parsing SPSS file using package memisc
- Escape XML on Windows Mobile 6
Related Questions in ITEXT
- how to turn characters in wrong codec into space in python?
- erlang os:cmd() command with UTF8 binary
- How to encode bytes as a printable unicode string (like base64 for ascii)
- weird characters in utf-8 encoded file
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Detecting corrupt characters in UTF-8 encoded text file
- Why does opening a file in two different encodings work as expected?
- Is there any function like iconv in Python?
- Control encoding when parsing SPSS file using package memisc
- Escape XML on Windows Mobile 6
Related Questions in XFA
- how to turn characters in wrong codec into space in python?
- erlang os:cmd() command with UTF8 binary
- How to encode bytes as a printable unicode string (like base64 for ascii)
- weird characters in utf-8 encoded file
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Detecting corrupt characters in UTF-8 encoded text file
- Why does opening a file in two different encodings work as expected?
- Is there any function like iconv in Python?
- Control encoding when parsing SPSS file using package memisc
- Escape XML on Windows Mobile 6
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 # Hahtags
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)