This content has been marked as final. Show 4 replies
You need to set Adobe Reader/Acrobat prefernece for display pdf in web browser.
To do this -
Chose Edit > Preferences.
Select Internet in the list on the left.
Check Display PDF in Browser, and click OK.
Hope this helps.
XDP and XML Acting Strange In IE... I have the exact same problem. Setting preference in Acrobat Reader did not help. I also have issue with Firefox, having to hit refresh over and over. The same form created with ASP doe not have this problem. Possibly something to do with PHP. My development machine is IIS with XP and SQL Server Express. Any ideas? Shawn, did you get the problem solved?
I did fix it, but don't have the slightest idea how or why it is now working. In fact everytime I create a new one, I spend about a day messing around with it trying to get the new one working. Some of the things to review:
1. Make sure your form xml matches exactly. What I did was create the form, name my data fields and then save it. I then open the PDF in Acrobat, populate every field as a user would then export the form data as XML. I then go back to use this XML as a sample data source as well as using it in my PHP code to ensure it matches.
2. I had to use a two step process to read the file into the browser. pdf_formname.php (sets the correct header and fopens/echos the content of the next file). xdp_formname.php (reads from the database and exports the correct xml). Very likely this is not at all needed, but since it is working, I'm afraid to touch it.
3. Make sure your html reference at the bottom of your XML/XDP is pointing to a real file.
4. Cleared my cache more times that I can count.
Sorry I can't be more help. I just wish there was a better debugging tool from Adobe that would tell me what file it thinks is missing rather than a generic message.
I have had problems in the past to to IE ignoring the content type. It will assume anything in the URL after a period as being a file extension and use that over the mime type. I made all the URLs end in .pdf and it made IE behave for me.
If you define a schema to associate your form data with, then your XML file can reference the same schema. There are many editing tools including IntelliJ Idea that I use which will validate your XML for you. This also separates your layout hierarchy from your data hierarchy. You can move an element from one sub form to another without changing the data file.