I have been successfully importing data into a PDF. When FinCEN's system didn't accept the form I performed a test by inputting the exact same data into a copy of the template PDF manually. FinCEN then accepted that form. So I decided to compare the two forms that looked identical.
- The file sizes are different, 192kb for XDP imported, 157kb for manual.
- When I manually export the XML using the Extended feature in Reader I get identical XML except there is a carriage return between the xml definition at the top and the root tag.
XDP imported
<?xml version="1.0" encoding="UTF-8"?>
<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
Manual input
<?xml version="1.0" encoding="UTF-8"?>
<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
Here is what I'm using to import in a ASP page. The "..." is where the specific PDF XML goes with values.
Response.Write("<?xml version='1.0' encoding='UTF-8'?><?xfa generator='AdobeDesigner_V7.0' APIVersion='2.2.4333.0'?><xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'><xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'><xfa:data> ... </xfa:data></xfa:datasets><pdf href='PDF Path' xmlns='http://ns.adobe.com/xdp/pdf/' /></xdp:xdp>")
I was just wondering if I'm missing something? I figured Adobe would have made importing of data to be no different than manual insertion.
Message was edited by: LoriAUC per Clint's instructions.