Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Importing XDP produces a different file than if manually filled???

Avatar

Level 1

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.

  1. The file sizes are different, 192kb for XDP imported, 157kb for manual.
  2. 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.

2 Replies

Avatar

Level 1

There's been quite a bit of views on this. Just want to give it a bump in case someone knows of any difference the files may have between importing and manual editing.

Avatar

Level 1

Were you ever able to resolve this issue? I have the same problem with FinCen forms - they will not be accepted if the form is loaded using the Adobe Import from XML whereas the same data entered manually will be accepted.