Preview generated PDF on page

I am creating a PDF document in code using Winnovative HTML to PDF , and I would like to view the document in a container on the page.

This is for an intranet application, and all end users have the latest version of Reader installed, so compatibility is not a problem. Preview should also be fully enabled, with the ability to zoom in and out, print, save, email, etc.

I have seen quite a few examples of searching the Internet, but I would appreciate some suggestions based on actual experience. Ideally, it would be great to find a server control with customizable parameters that can create elements and register the necessary client scripts.

+4
source share
1 answer

I think you need the <embed> . Put something like this on your page, and you can show users PDF on the web page itself.

 <h3>Sample Pdf</h3> <embed width="80%" height="80%" name="plugin" src="http://www.education.gov.yk.ca/pdf/pdf-test.pdf" type="application/pdf"> 

You will get all the features of Adobe Reader. With its Intranet application, you need to be sure that the required plugins are already installed on the client machines.

+1
source

Source: https://habr.com/ru/post/1382585/


All Articles