Embedding PDFs in a blog can be a great way to share information, especially with parents and the community. These days Google Drive makes this easy: when you’re viewing a PDF you can easily get the embed code and drop it into you blog. But, the code includes a preview pane and no options for zooming, so it’s not idea.
Getting the embed code is easy, but the result is in no way ideal. In fact you’ll notice that most of the first page of the PDF you can’t even see. Fortunately, there’s a better way. It take a little code (really, just a little), but it’s very doable.
The embed code Drive gives you looks like this :
<iframe src="https://docs.google.com/a/bpsk12.org/file/d/0B3xoQi_oa7_hU2J5S1RQbFdqS3c/preview" width="580" height="480"></iframe>
<iframe src="https://docs.google.com/viewer?srcid=[put your file id here]&pid=explorer&efh=false&
There are only three things in the code we need to worry about:
- The file id.
- The height of the frame.
- The width of the frame.
The file ID is highlighted in yellow.
Read more here...
0 comments:
Post a Comment