Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

XDP - open PDF with #toolbar=0 problem in IE

Avatar

Level 2

Hi

When opening PDF's using a correctly constructed XDP I specify at the end:

<pdf href="some.pdf" xmlns=http://ns.adobe.com/xdp/pdf/ />

Everything works correctly in all browsers.

I would like to hide the toolbars so when I change the href to:

<pdf href="some.pdf#toolbar=0" xmlns=http://ns.adobe.com/xdp/pdf/ />

the PDF opens but in IE the XDP data doesn't merge however, it works as expected in other browsers (data merge and toolbar hidden)

Has anyone else come accross this or know of a fix or workaround?

Thanks for looking.

Andy

9 Replies

Avatar

Level 2

Shameless 'bump'.

Does anyone open XDP's with the '#toolbar=0' switch after naming the PDF?

Avatar

Former Community Member

<?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.

Avatar

Former Community Member

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...

Avatar

Level 2

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.

Avatar

Former Community Member

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.

Example URL:

http://www.url.com/mergeXDP.aspx#toolbars=0

If you are using ASP.net web servers:

Check out www.fdftoolkit.net

Web Examples:

www.nk-inc.com/software/fdftoolkit.net/examples/

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".

Avatar

Level 2

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.

Thanks again.

Andy

Avatar

Level 2

Completely shameless 'bump'.

Anyone open XDP's with the '#toolbar=0' switch or other switched after naming the PDF?

Avatar

Former Community Member

Did you try to use the HEX equivelent?

'%23toolbar=0'

Avatar

Level 2

Yup - tried that.

Thanks again NKOWA2.