How to display a XDP pdf file in browser like how normal PDF file open?

只谈情不闲聊 提交于 2019-12-19 10:45:23

问题


I have a XDP file that Acrobat can open. It contains a PDF plus some data to fill in the form fields in the PDF.

In my HTTP request header I set

content-type to "application/vnd.adobe.xdp+xml" and Content-Disposition to "in-line"

still my browser downloads the file and asks me if I want to Open it or save it. When I click on Open it loads the PDF form and data inside Acrobat, not in the web browser.

Do you have any idea?

UPDATE: I reinstalled the Adobe plugin and now browser(FireFox) attempts to open the PDF but I get the following error:

that is very strange as the file is created by Acrobat it self. On the same page that throw this error, if I press OK and go to File > Save as.. and save the XDP file on desktop then drag and drop it into a new browser window, it opens it! and the address bar shows a very similar file name and location as was shown in the error (temp directory of FireFox cache).


回答1:


It looks like an administration problem. Your file is being downloaded but Adobe doesn't have the access rights to that folder.

Contact your network administrator is my only answer.




回答2:


I wonder if this open source project will solve your web display problem: pdf.js If not immediately, perhaps you can help it along.



来源:https://stackoverflow.com/questions/6809648/how-to-display-a-xdp-pdf-file-in-browser-like-how-normal-pdf-file-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!