Embedding PDF Files


Well-known member
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:


And it is generated as:

<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.