Answers for "html preview pdf"

7

html embed a pdf

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <h1>PDF Example with iframe</h1>
  
 		   
    <iframe src="link/to/your.pdf" width="100%" height="500px">
    </iframe>
 
  
  </body>
</html>

<!-- insta: @hardcode_studios -->
Posted by: Guest on April-17-2020
0

show pdf in html

<iframe
    src="https://drive.google.com/viewerng/viewer?embedded=true&url=http://infolab.stanford.edu/pub/papers/google.pdf#toolbar=0&scrollbar=0"
    frameBorder="0"
    scrolling="auto"
    height="100%"
    width="100%"
></iframe>
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language