We have been researching ways to display PDF files within posts or pages on WordPress websites. This post will test a few of the recomended solutions and give our verdict on the result.
We have looked at various options and plugins, we have listened to a few of our IRC Channel suggestions and have shortlisted the options to the plugins below.
Each plugin has its own unique way of handling or converting the pdf , the first one requires downloading and running a pdf to swf conversion software. Watch out for ‘Our Verdicts’ in red at the end of each test.
We have looked at various options, plugins and suggestions and are currently testing a method which involves first converting the pdf to swf using free software SWF Tools (must be run as administrator to install) and then embedding the swf direct to the page or post.
We have converted a random ‘make money from FaceBook’ publication from pdf to swf, the file now stands short of just under 90mb , we have ftp uploaded it to our webserver and entered the shortcode as per the installation page (using width 580 and height 400).
It appears that the whole magazine needs to downloaded in the first instance before it can be viewed, so it may be worth remembering this before considering uploading huge pdf.
[wp-pdf-view swf="/ebook/500-Dollars-Everyday-With-Your-Facebook-Fan-Page.swf" width="580" height="300" /]
What do you see ?
Using Google Chrome we see a miniature book up in the top left corner that is UNREADABLE.
VERDICT : NOT IMPRESSED
WORDPRESS OWN BUILT IN PDF EMBEDD
Strangely not our first choice, WordPress is full of delightful goodies but in our opinion if you want to stand out from the crowd , then you need to upgrade. Lets give it a try anyways:-
How to Embed PDF files into a WordPress Post
- Using an ftp client, upload the .pdf file to your sites directory root
- Login to your WordPress admin panel
- Select the post or page you would like to add the PDF document to
- From the WYSIWYG editor, select the option to Insert/edit embedded media
- (1) For Type, select Shockwave (2) Enter the URL to your .pdf file (3) Set your dimensions (4) Click Insert
- Save your post, then go view your post
If all goes well, you should now have your pdf file or document embedded into your WordPress post or page.
An alternate method to include a PDF file using the embed tag is as follows:
- Use an ftp client to upload the PDF file to your server
- Login to your WordPress Admin panel
- Select the post you want to add the PDF file to
- Select the HTML editor and add the following code where you would like the PDF file to present
<embed src=”http://yoursite.com/the.pdf” width=”500″ height=”375″>
Using Google Chrome we see a absolutely nothing
VERDICT : NOT IMPRESSED
ILC PDFBox WORDPRESS PLUGIN
This plugin comes from the I Love Colors site and is slightly different to the above, whereby it does not display the PDF within the document, but more a link which opens in thickbox (although the author admits there may be some issues with older IE browsers).
The ILC-PDFBox plugin for WordPress will allow you to display a PDF document that you embed in the post writing area using Thickbox, the jQuery modal window. In this way you don’t have to open a separate page to display it, you can speed up loading times by loading it only if it’s going to be read and you don’t waste excessive bandwidth.
Upload your pdf using the “Add Media” button, and insert the link to the file. That’s it. Publish your post and when you now click the link, a Thickbox displaying your pdf will be launched.
Now although not technically what we wanted this seems to work very well , only loads as pages are needed, good visibility , we assume a pdf reader must be installed on the client machine, as all the print, enlarge and other options are available…..
VERDICT : IMPRESSED – But Not Exactly What We Wanted….
We hope that people will continue to give us some suggestions on plugins, or advice on how to display a pdf as maybe even a book within WordPress, as our research in the area has pretty much failed us……
IF THIS HAS HELPED YOU PLEASE LEAVE A COMMENT BELOW
^^Want To Buy Me A Pack Of Smokes Or A Beer ?^^
Consider Following Us On FaceBook.
Thank You For Reading – Ninja UK (Nerds 4 U Services)