Very good way to display pdf on a webpage

Source: Internet
Author: User

Today, I want to display a PDF file on the webpage, So I immediately began to search for a solution and accidentally found a very good solution. For details, see http://blogs.adobe.com/?devjunkie/web_designers_guide.

In fact, it is enough to watch this website, http://www.pdfobject.com /.

Record the main code:

<SCRIPT type = "text/JavaScript" src = "scripts/pdfobject. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
Window. onload = function (){
VaR success = new pdfobject ({URL: "pdf/CGVET22-08-2011V2P.pdf", export openparams: {scrollbars: '0', toolbar: '0', statusbar: '0 '}}). embed ("pdf1 ");
};
</SCRIPT>
 
<Div id = "pdf1" style = "width: 700px; Height: 600px;"> it appears you don't Have Adobe Reader or PDF support in this web browser. <a href = "~ /Pdf/CGVET22-08-2011V2P.pdf "> click here to download the PDF </a> </div>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.