Search Posts

Webside-viser-PDF

  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/

[Selve PDF-filen som er en kopi af en webside kan laves online her: https://www.web2pdfconvert.com/ ]

(Diskussion om dette, se siden: https://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html )

Script for at opdele tospaltet pdf så den bliver enkeltspaltet (og kan læses på en smartphone):

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image