Skip to content

Instantly share code, notes, and snippets.

@xianminx
Created August 21, 2014 02:46
Show Gist options
  • Select an option

  • Save xianminx/3d0955583c4fbf742bcc to your computer and use it in GitHub Desktop.

Select an option

Save xianminx/3d0955583c4fbf742bcc to your computer and use it in GitHub Desktop.
Hi, you can try to place your PDF file id into the url below:
(id can be found on the Address Bar like: https://docs.google.com/file/d/ [xxxxxxxxxxxxxxx] /edit)
https://docs.google.com/viewer?srcid=[put your file id here]&pid=explorer&efh=false&a=v&chrome=false&embedded=true
then place the url into <IFRAME>:
<iframe src="https://docs.google.com/viewer?srcid=[put your file id here]&pid=explorer&efh=false&a=v&chrome=false&embedded=true" width="640px" height="480px"></iframe>
Congratulations! You can embed PDF without the left side navigator and it will automatically adjust to document width.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment