ATTENTION: Support to post2pdf will be discontinued, i’m sorry but i cannot to go on developing this plugin.
Hello here you can find detailed
information about this post2pdf plugin and instructions on its
installation and customization.
Description:
What does this plugin do? It converts all your posts, pages and categories in pdf documents ready to download on the fly,you don’t need any particular application installed on your server or php extensions, all you need (is love…) is the plugin unzipped in your plugin directory and then activated in Plugin tab!
In current version, only a small subset of html tags are supported, and in some cases it doesn’t render the document in a very good shape…
The new version 0.5 is now ready for PHP 5 and WP 2.7, as in previous version you can find a configuration file where you can decide the default export action (on/off) and the default category exportation action (on/off) and a lot of old and new features.
Tag currently supported are:
img, a, b, i, li, code, em, pre, strong, font, h1, h2, h3, h4, brtable, tr, td
and images are restricted to jpg and png format, so don’t expect too much, please.
This plugin is based on a pdf conversion class written by me and built on fpdf library.
Installation:
- Upload to your plugins folder, usually `wp-content/plugins/` and unzip it.
- Activate the plugin on the plugin screen.
- Edit config.inc.php file to change default behaviour.
Customization:
There are so few customization now, that it’s quite useless to list them, but here there are the most important:
- You can use the tag to exclude a particular post or page from the plugin, so you can select which pages and posts could be exported in you blog and which not.
This tag could be placed in any places inside you post body. - There are currently two layout, you can use for exportation, you need to select one of them inside the generate.php file in the plugin directory, but of course you can leave the default choice.To make this choice you have to edit the $layout variable in the file setting it to 1 for the layout with chapter (this layout is the default one, but it is intended for future use when entire archive, containing several posts, could be exported), or 2 for the single page layout.
- Editing file config.inc.php you can change html code for export button, change the default exclude tag () and the default export tag (), and setting the default export action for posts to true or false.
If setted to true, all your posts are exported by default and you can decide which once you don’t want to export, otherwise if setted to false, you can decide which posts you want to export by simply inserting the export tag. - Using in a post body, you can now place the export button wherever you want!
Special thanks:
I wanna give a special thank to Andreas Vdovkin who gave me the code snippet to convert utf8 charset to iso, to Enrico Ladogana who gave me a suggest for html code validation, and to Claudio Iannotta who gave me some bug report and code suggestion, and finally I wanna thank each person who have commented and will comment on this plugin, your ideas folks are gold for me!
Download:
Ver: 0.5
State: beta
Tested with: Wordpress 2.7 PHP5
Latest update: 31 december 2008
Here you can dowload the zip version of Post2Pdf plugin.
Old stable version here:
Here you can dowload the 0.4 zip version of Post2Pdf plugin (PHP5 is not fully supported now).
Here you can dowload the 0.4 gzip version of Post2Pdf plugin (PHP5 is not fully supported now).
Donation:
If you appreciate this work and you want to help me mantain it and all other stuff i do, you can help me making a donation with paypal here:
Make a donation
Or you can help me to improve my computer science skills, buying me a new book from my Amazon Whish List
Thank you very much!
Update history:
- 31 december 2008 -
The new fpdf version has been relased, so you can use post2pdf on PHP5 based blog with WordPress 2.7
– 13 october 2007 –
You can now decide if your post and categories could be exported by default or not, and small bug solved.
– 15 april 2007 –
Configuration file created, where you can change html code of the plugin and change the default exclude and export tag. Added a special tag that place the export button wherever you want in tha post body ( <!–post2pdf_export–> ).
– 06 februrary 2007 –
Great news… Table support added, image managment improved with a best effort technique, visual editor button added (unfortunatly this feature doesn’t work with wordpress 2.1, if you use visual editor, but it works perfectly if you disable it), and “dulcis in fundo” category exportation enabled…
– 18 january 2007 –
Small bug solved, causing some other plugin not to work properly.
– 11 january 2007 –
UTF8 character now supported, thanks to Andreas Vdovkin.
– 07 january 2007 –
You can now exclude the plugin in a post or in a page simply
including this tag in the text:
<!–post2pdf_exclude–>
(the string it’s without spaces)
– 20 december 2006 –
Small bug resolved, image support improved.
Credits:
- Department of Spanish and Portugues, UC Berkeley - Just an important institution using my plugin
- Content management system as a tool for creating communal hybridmedia content (Ari Paajanen)- A master’s thesis for the degree of Master in Science in Technology, Helsinki University of Technology
- Post2PDF: un plugin per convertire i post in formato PDF - An interesting italian guide to plugin customization




Comments