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.
Related Questions in PDF
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
Related Questions in ITEXT
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
Related Questions in XFA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
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?
Popular Tags
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)
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)