Open XDP file in Adobe Reader DC?
Copy link to clipboard
Copied
How to open XDP file in Adobe Reader DC?
FYI: Opening XDP files in Adobe Reader don't populate static XFA PDF forms when using URLs instead using the file system path.
PDF link:
fdftoolkit.net/examples/xfa-static2.pdf
The static XFA PDF is not populated with the XDP data. And it just downloads a blank PDF form when the XDP is opened in Adobe Reader.
<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="XFA2_4" APIVersion="2.6.7120.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>
<topmostSubform>
<FULLNAME>STATIC XFA</FULLNAME>
<RADIOBUTTON>True</RADIOBUTTON>
<SIGNATURE></SIGNATURE>
<SUBMIT></SUBMIT>
<RESET></RESET>
<CHECKBOX>True</CHECKBOX>
<COMBOBOX>Item B</COMBOBOX>
<LISTBOX>
<value>Item B</value>
<value>Item D</value>
</LISTBOX>
<EMAIL>me@domain.com</EMAIL>
</topmostSubform>
</xfa:data>
</xfa:datasets>
<pdf href="http://www.fdftoolkit.net/examples/xfa-static2.pdf" xmlns="http://ns.adobe.com/xdp/pdf/"/>
</xdp:xdp>
It works if I set the PDF path in the XDP file to a File System Path instead of a URL: Ex: "C:\webroot\xfa-static2.pdf"
<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="XFA2_4" APIVersion="2.6.7120.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>
<topmostSubform>
<FULLNAME>STATIC XFA</FULLNAME>
<RADIOBUTTON>True</RADIOBUTTON>
<SIGNATURE></SIGNATURE>
<SUBMIT></SUBMIT>
<RESET></RESET>
<CHECKBOX>True</CHECKBOX>
<COMBOBOX>Item B</COMBOBOX>
<LISTBOX>
<value>Item B</value>
<value>Item D</value>
</LISTBOX>
<EMAIL>me@domain.com</EMAIL>
</topmostSubform>
</xfa:data>
</xfa:datasets>
<pdf href="C:\webroot\xfa-static2.pdf" xmlns="http://ns.adobe.com/xdp/pdf/"/>
</xdp:xdp>
Is this a bug or a feature?
Message was edited by: Nick K
Copy link to clipboard
Copied
XDP is an XML file type processed by LiveCycle products. It can be a standalone file or wrapped within a PDF file. If standalone one needs to use a LiveCycle product to read it. When wrapped within a PDF Acrobat or Reader can read that PDF. Mobile device PDF readers cannot process an XDP file wrapped in a PDF.
IF you want to read or process this file you will need a LiveCycle product.
Copy link to clipboard
Copied
One thought (for I know nothing about XDP) is that your "URL", while valid, is relative, and won't be resolved. Use an absolute URL. Usually that means starting it with http://
Copy link to clipboard
Copied
My mistake, in the XML (not your commentary) it is an absolute URL.
Copy link to clipboard
Copied
Is this an exported XML data set from a PDF form that was created with LiveCycle?
If so, you may need to import it back into that form.
If I open you linked form and save it on my local system I get the following error:
Cannot Connect to Server http://localhost:35555/example_pdfemail.aspx?pg=50&pdf=http://localhost:35555/xfa-static.pdf&att=raw
I also see this form was created using Word and iTextSharp
this.info.producer;
Microsoft® Office Word 2007; modified using iTextSharp™ 5.5.9 ©2000-2016 iText Group NV (AGPL-version)
It is not clear what the association is to Acrobat or LiveCycle except it appears to be some type of XDP file. Is it possible the file has some syntax errors?
Copy link to clipboard
Copied
Is this a feature or a bug? When I use a relative path or a file path for the PDF HREF URL in the XDP file it populates the PDF correctly; but, when I use the full URL, it doesn't populate the PDF with the XDP data.
The relative URL populates the PDF:
fdftoolkit.net/examples/xfa-static-relative.xdp
<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="XFA2_4" APIVersion="2.6.7120.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>
<topmostSubform>
<FULLNAME>STATIC XFA</FULLNAME>
<RADIOBUTTON>True</RADIOBUTTON>
<SIGNATURE></SIGNATURE>
<SUBMIT></SUBMIT>
<RESET></RESET>
<CHECKBOX>True</CHECKBOX>
<COMBOBOX>Item B</COMBOBOX>
<LISTBOX>
<value>Item B</value>
<value>Item D</value>
</LISTBOX>
<EMAIL>me@domain.com</EMAIL>
</topmostSubform>
</xfa:data>
</xfa:datasets>
<pdf href="xfa-static2.pdf" xmlns="http://ns.adobe.com/xdp/pdf/"/>
</xdp:xdp>
The absolute URL does NOT populate the PDF:
fdftoolkit.net/examples/xfa-static2.xdp
<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="XFA2_4" APIVersion="2.6.7120.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>
<topmostSubform>
<FULLNAME>STATIC XFA</FULLNAME>
<RADIOBUTTON>True</RADIOBUTTON>
<SIGNATURE></SIGNATURE>
<SUBMIT></SUBMIT>
<RESET></RESET>
<CHECKBOX>True</CHECKBOX>
<COMBOBOX>Item B</COMBOBOX>
<LISTBOX>
<value>Item B</value>
<value>Item D</value>
</LISTBOX>
<EMAIL>me@domain.com</EMAIL>
</topmostSubform>
</xfa:data>
</xfa:datasets>
<pdf href="http://www.fdftoolkit.net/examples/xfa-static2.pdf" xmlns="http://ns.adobe.com/xdp/pdf/"/>
</xdp:xdp>

