Does anyone open XDP's with the '#toolbar=0' switch after naming the 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>www.NK-Inc.com 1234</FullName> <StreetAddress>123 Example Test</StreetAddress> <City>Test City</City> <State>Test State</State> <ZipCode>12345</ZipCode> <Country>Test Country</Country> <PhoneNumber>123-1234</PhoneNumber> <FaxNumber>234-1234</FaxNumber> </topmostSubform> </xfa:data> </xfa:datasets> <pdf href="http://localhost/test_livecycle.pdf#toolbar=0" xmlns="http://ns.adobe.com/xdp/pdf/"/> </xdp:xdp>
Use the Absolute URL instead of the relative URL for the PDF href file path in XDP data files.
I tried passing the #toolbar=0 querystring parameter with the Absolute URL IE 8, and no toolbar shows.
Also, if you have Acrobat PRO/STD installed, uninstall Reader.
However, you are 100% right, when I double checked the form, the data doesn't merge when passing the #toolbar=0 parameter.
This must be a bug in LC/Acrobat...
Thanks for the reply NKOWA. My path the the PDF is a full URL as you suggested but it doesn't merge the data as you've found.
It's a nusance isn't it.
Since your posting the XDP data to a PDF, you can merge the XDP + LC PDF using 3rd party tools, send the merged PDF to buffer (data is presented), and then pass the querystring parameter to the merged PDF.
If you are using ASP.net web servers:
Check out www.fdftoolkit.net
If you are using Java enabled non-MS servers, check out iText.
iText can merge XML/XDP with LC forms.
For more information Google "iText merge XDP XFA", or buy the book or e-book "iText in Action Second Edition".
Thanks for the response NKOWA.
Is the only way with 3rd part tools as this is something we were trying to avoid.
As mentioned, this works in Opera and Safari. I would have thought that the Acrobat Reader component is generic so I presume it's the browser.
Completely shameless 'bump'.
Anyone open XDP's with the '#toolbar=0' switch or other switched after naming the PDF?
Did you try to use the HEX equivelent?
Yup - tried that.
Thanks again NKOWA2.