Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Recommended way to embed PDF in HTML? #9323
    blanksaid-bouigherdaine
    Participant
    1. Create a container to hold your PDF

      <div id="example1"></div>
      
    2. Tell PDFObject which PDF to embed, and where to embed it

      <script src="/js/pdfobject.js"></script>
      <script>PDFObject.embed("/pdf/sample-3pp.pdf", "#example1");</script>
      
    3. You can optionally use CSS to specify visual styling, including dimensions, border, margins, etc.

      <style>
      .pdfobject-container { height: 500px;}
      .pdfobject { border: 1px solid #666; }
      </style>
      

    source : https://pdfobject.com/

Viewing 1 post (of 1 total)