Skip to main content
Mrsunilg-3z0lTX
Level 7
Oct 16, 2015 2:30 AM UTC
Solved

How to force browser to display pdf form only whether it supports or not?

Hi All,

Whenever I hit below url I get an HTML 5 form and When My browser doesnt support I will get pdf form with xml data rendered into it.

http://localhost:4502/content/xfaforms/profiles/default.html?contentRoot=crx:///content/dam/formsanddocuments/FordeForm&template=ESC101NK.xdp&dataRef=crx:///content/dam/fordeform/contractData.xml

Please tell me what parameter I set to get either HTML5 or PDF based on my choice. I want to force browser to display pdf whether it supports or not.

 

Regards

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vduaAccepted solution
Adobe Employee
Oct 16, 2015 2:30 AM UTC

Instead of the html extension, you can try .pdf extension to show the pdf file. i.e. try changing the URL to

http://<server>:<port>/content/xfaforms/profiles/default.pdf?contentRoot=crx:///content/dam/formsanddocuments/FordeForm&template=ESC101NK.xdp&dataRef=crx:///content/dam/fordeform/contractData.xml

2 replies

Mrsunilg-3z0lTX
Level 7
Oct 16, 2015 2:30 AM UTC

thanks alot.. i got the pdf

Translate
vduaAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:30 AM UTC

Instead of the html extension, you can try .pdf extension to show the pdf file. i.e. try changing the URL to

http://<server>:<port>/content/xfaforms/profiles/default.pdf?contentRoot=crx:///content/dam/formsanddocuments/FordeForm&template=ESC101NK.xdp&dataRef=crx:///content/dam/fordeform/contractData.xml

Translate