Saturday, April 17, 2021

embedding a pdf in a web page

Several ways to embed a pdf in an html page - 
  1. Using the object or embed tag (deprecated)
  2. Using a tags with href links (not actually embedding, linking)
  3. Using iframe tags where the toolbar can be made hidden with src="/path/my.pdf#toolbar=0"
  4. Using Adobe's SDK - somewhat complicated initial setup
  5. If hosted on Google Drive, using an iframe with src="https://drive.google.com/file/d/FILE_ID/preview">

No comments:

Post a Comment