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
- Rails 5.1: Passing in array to where query does not search across multiple values
- Configuration details for Rails API-only app with one or two full routes
- How to add a new resource type to Rails scaffolding generator?
- Rails 5.1 - ActiveRecord::RecordNotUnique.new wrong number of arguments
- How can I require a Yarn package in the Rails assets?
- bpmn-js with Rails 5.1 webpacker Cannot resolve module 'fs'
- Rails-ERD, Graphviz error. Other answers not working. "Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot"
- syntax error ruby rspec testing
- The asset "logo.png" is not present in the asset pipeline
- Get 'Zone already loaded' error in Rails + webpack + angular 2 initial setup
Related Questions in ITEXT
- Rails 5.1: Passing in array to where query does not search across multiple values
- Configuration details for Rails API-only app with one or two full routes
- How to add a new resource type to Rails scaffolding generator?
- Rails 5.1 - ActiveRecord::RecordNotUnique.new wrong number of arguments
- How can I require a Yarn package in the Rails assets?
- bpmn-js with Rails 5.1 webpacker Cannot resolve module 'fs'
- Rails-ERD, Graphviz error. Other answers not working. "Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot"
- syntax error ruby rspec testing
- The asset "logo.png" is not present in the asset pipeline
- Get 'Zone already loaded' error in Rails + webpack + angular 2 initial setup
Related Questions in XFA
- Rails 5.1: Passing in array to where query does not search across multiple values
- Configuration details for Rails API-only app with one or two full routes
- How to add a new resource type to Rails scaffolding generator?
- Rails 5.1 - ActiveRecord::RecordNotUnique.new wrong number of arguments
- How can I require a Yarn package in the Rails assets?
- bpmn-js with Rails 5.1 webpacker Cannot resolve module 'fs'
- Rails-ERD, Graphviz error. Other answers not working. "Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot"
- syntax error ruby rspec testing
- The asset "logo.png" is not present in the asset pipeline
- Get 'Zone already loaded' error in Rails + webpack + angular 2 initial setup
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)