Expand my Community achievements bar.

Firefox opens application/vnd.adobe.xdp+xml in new Tab/Window

Avatar

Former Community Member
Hello,<br /><br />I´m using Livecycle Designer 7.0, Acrobat Reader 7, 8 and 8.1. <br />We want to open XDP File (with a PDF enclosed element) in browser using a Java/Servlet.<br />It opens fine in IE 6.0 but when we open it with Firefox 2.0.0.9<br />it´s opened in a new tab!. Any idea to avoid this behavior?. Sth worng with de pluggin?<br /><br />Thanks<br /><br />/*Servlet code*/<br />String content = "<?xml version=\"1.0\" encoding='UTF-8'?>\n" +<br />"<?xfa generator=\"AdobeDesigner_V7.0\" APIVersion=\"2.2.4333.0\"?>\n" +<br />"<xdp:xdp xmlns:xdp=\"http://ns.adobe.com/xdp/\">\n" +<br />"<xfa:datasets xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\">\n" +<br />"<xfa:data xfa:dataNode=\"dataGroup\">\n"; +<br />"<form1><TextField1>aaaaaaaa</TextField1></xfa:data>" +<br /><pdf href=\"pathname/filename.pdf\" xmlns=\"http://ns.adobe.com/xdp/pdf/\" />\n" + <br />"<xfdf xmlns=\"http://ns.adobe.com/xfdf/\" xml:space=\"preserve\">\n" +<br />"</xfdf>\n" +<br />"</xdp:xdp>\n";<br /> <br />ServletOutputStream out = response.getOutputStream();<br />response.setContentType("application/vnd.adobe.xdp+xml");<br />response.setHeader("Content-Disposition","inline;filename=xdpfile.pdf"); <br />bytes[] contentBytes = content.getBytes("UTF-8");<br />response.setContentLength(contentBytes .length);<br />out.write(contentBytes );<br />out.flush();<br />out.close();<br />/*Servlet code*/
3 Replies

Avatar

Former Community Member
Hi,



Did you find a solution to your problem ?



I am facing similar but worst issue with application/vnd.adobe.xdp+xml. My requirement is to open the PDF in the new tab/window.



Problem:

Firefox

1. Opens an additional tab and keeps the one application opened as blank.



IE 7.0

1. Opens a blank new window as Firefox but opens the PDF in Firefox. I believe this is happening because Firefox is the default browser on my computer.



IE 6.0

1. Opens the PDF in the parent (application) window and keeps the pop up blank.



Other:

When I change the setting in Adobe Reader -> Edit -> Preferences -> Internet -> "Un check" Display PDF in browser. Data does not get filled in the PDF when opened in the reader outside the browser.



Thanks,

Avatar

Level 1

Hi,

I am facing the similar issue. I am trying to open a XDP file through a servlet and got the same result.

Did you find the solution for the issue (Firefox opens XDP file in new window)? Please update. It will really help a lot. Appreciate and Thank you.

Avatar

Former Community Member
I have a different issue. When I open the xdp in a browser it only displays the xml code on the screen. Do I need something else installed on my intranet server? I can open the referenced PDF directly in the browser and if I map to the drive the xdp is located I can open it directly. The browser just wont work for me IE 6. <br /><br />Any help would be greatly appreciated.<br />Xdp file:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="XFA2_4" APIVersion="2.4.6053.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"><br /><xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"<br />><xfa:data<br />><topmostSubform<br />><memberNum>1234</memberNum<br />><memberName>Brian</memberName<br />><currDate>3/25/2009</currDate><br /></topmostSubform></xfa:data><br /></xfa:datasets><pdf href="Sign.pdf" <br />xmlns="http://ns.adobe.com/xdp/pdf/"/></xdp:xdp>