Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,158 questions

40,712 answers

573 users

How to embed PDF file in HTML

3 Answers

0 votes
<!DOCTYPE html>
<html>
  <head>
    <title>How to embed PDF file in HTML</title>
  </head>
  <body>
    <object
      type="application/pdf"
      data="https://html.spec.whatwg.org/print.pdf"
      width="800"
      height="1000"
    >
    </object>
  </body>
</html>

 





answered Jun 6, 2021 by avibootz
0 votes
<!DOCTYPE html>
<html>
  <head>
    <title>How to embed PDF file in HTML</title>
  </head>
  <body>
    <embed 
      src="https://html.spec.whatwg.org/print.pdf#toolbar=0&navpanes=0&scrollbar=0" 
      width="800" 
      height="1000"
    > 
  </body>
</html>

 





answered Jun 6, 2021 by avibootz
0 votes
<!DOCTYPE html>
<html>
  <head>
    <title>How to embed PDF file in HTML</title>
  </head>
  <body>
    <object 
      width="100%" 
      height="800" 
      type="application/pdf"
      data="https://html.spec.whatwg.org/print.pdf#scrollbar=0&toolbar=0&navpanes=0"  
      style="pointer-events: none;"
    >
      <p>PDF cannot be displayed</p>
    </object>
  </body>
</html>

 





answered Jun 6, 2021 by avibootz

Related questions

1 answer 86 views
1 answer 102 views
1 answer 115 views
1 answer 82 views
82 views asked Nov 20, 2018 by avibootz
...