How to display a XDP pdf file in browser like how

2019-02-20 06:12发布

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: Adobe Reader plugin in FireFox

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

2条回答
何必那么认真
2楼-- · 2019-02-20 06:43

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.

查看更多
做自己的国王
3楼-- · 2019-02-20 06:53

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

查看更多
登录 后发表回答