How to force browser to display pdf form only whether it supports or not? | Community
Skip to main content
Mrsunilg-3z0lTX
Level 7
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 1555 views

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.
Best answer by vdua

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

vduaAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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

Mrsunilg-3z0lTX
Level 7
October 16, 2015

thanks alot.. i got the pdf