问题
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