×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: userc865b
Added: Oct 16, 2017 9:43 AM
Modified: Oct 16, 2017 10:06 AM
Views: 5
Tags: html
icludes pdf file embed in html embed
https://pdfobject.com/
  1. //icludes pdf file embed in html embed
  2. // alternative 1
  3.  
  4. <object data="test.pdf" type="application/pdf" width="700" height="400">
  5.     alt : <a href="test.pdf">test.pdf</a>
  6.  
  7. // alternative 2
  8. <iframe style="width:100%;height:500px" src="test.pdf"></iframe>
  9.  
  10. // alternative 3
  11. <embed src="/pdf/sample-3pp.pdf#page=2" type="application/pdf" width="100%" height="100%">
  12. <embed width="100%" height="500" src="test.pdf">