Recently Google published Google Docs undocumented feature that let us embed PDF documents and Power Point presentations to the webpages. Surprisingly this document viewer isn't created with Flash. All the user need to view documents is
- Upload pdf-ppt-viever folder to the /wp-content/plugins/ directory.
- Activate the plugin through the 'Plugins' menu in WordPress.
It's extremely easy to use PDF and PPT Viewer. Just start writing a new post. Then, when you need to insert PDF or PPT file to your post, press Add Media button above WYSIWYG editor. Then go to the desired tab and insert a file to the post in a usual manner. If this file is a Power Point presentation or PDF document, the plugin will determine it automatically and do the rest of work for you. As a result you'll get the file embedded to your post in the manner that is shown here. Note that if you insert the file from your media library, you should set Link URL to the File URL.
You can set size of the viewer to fit the theme that you use. Go to Settings -> Miscellaneous in the WordPress menu and set corresponding values in the PDF and PPT Viewer settings section.
PDF and PPT Viewer supports shortcodes. It means that you can write code like
[pdf-ppt-viewer href="document_uri" width="viewer_width" height="viewer_height"], e.g.
[pdf-ppt-viewer href="http://infolab.stanford.edu/pub/papers/google.pdf" width="400" height="500"], which will embed PDF or PPT document to your post. All arguments, except
href, are optional. By default, widht and height of the viewer are set according to blog settings. Using this way of embedding documents, you can save your time and have a better control over viewer's size.
PDF and PPT Viewer supports all modern browsers. The plugin doesn't require installation of non-standard PHP extensions on your server, so you will not have problems with your hosting provider. PDF and PPT Viewer works with WordPress 2.8 and higher.