• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Embedding PDF Files

OperaManiac

Well-known member
#1
I am looking for a way to convert a PDF Link to an embed code powered by Google Docs Viewer.

Essentially... Looking for this:

User posts a PDF file link:

http://www.glencoe.com/sec/literature/litlibrary/pdf/tom_sawyer.pdf

And it is generated as:

HTML:
<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.glencoe.com%2Fsec%2Fliterature%2Flitlibrary%2Fpdf%2Ftom_sawyer.pdf&embedded=true" width="600" height="780" style="border: none;"></iframe>
PS: I understand issues related to hotlinking. But this is sort of for a personal project. We do plan to use Scribd. But this is something that would be very nice.