How your visitors can save your posts as PDF’s
Being a member of several mailing lists gives me they opportunity to try several new things coming out. An email I received today indicated that HP has created a plug-in that allowed posts to be changed into PDF’s. I though hey cool I’ve done this many times using PHP so let me go check out HP.
The link I was given was HP Blog Printing and upon getting there wouldn’t you know it, they have a WordPress plugin as well! Great time to check out the plug-in and see if it works; hehe.
So I clicked the WordPress plug-in image link and was introduced to the registration screen. You can not download the plug-in without: first, giving your email address; second, entering the URL of the blog you are using it on; third, accepting the terms & conditions. Ehh?!? OK so I can expect unsolicited email I guess but we’ll see if the email account I gave suddenly starts receiving them. >:-)>
Upon completing that step I was sent to the download screen. Which I promptly downloaded the WP plug-in. Although there were some strange files I did exactly as the README file said and uploaded the plug-in folder to the right folder. After logging into Tech Ravings I activated the plug-in.
Tech Ravings doesn’t have a theme that supports WP 2.2 so I had to manually include the php function to activate the print function and image but the README says that for version 2.2 you can widgetize it as well and my version actually shows it; again my theme isn’t widgetized though.
I was un-impressed with the results as the print image had a border around it and it was left justified in the sidebar. Not good in my opinion. HP released this under the GPL so I could modify it. Which I promptly id and added the border=”0″ to the image and wrapped it in a div tag through the code.
However when clicking the print button I was highly impressed as a category listing of all my posts where displayed with the post in each checked marked for conversion. Using the deselect all and then selecting a single post I made a great PDF of a post. This was converted to a PDF which I saved and then printed.
If you are interested in my hack you can download it here: HP Blog Print which will center your image within the area and remove the border for Internet Explorer; otherwise go to the publishers website as posted above for the “official” version.

