ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
Posted by Daniel - 5,184 Views
Before I finally found this plugin, I had been using MS-Word Printer Addins which only provide limited flexibilities for example they won’t transfer MS-Word hyperlink into the created PDF file and that is not the result I want get.
OK lets talk about this plugin. ContuttoPDF is a Wordpress plugin which I think you should have when you need to convert your WordPress post content into PDF file. It’s a great plugin and it’s relatively quite easy to install and yes it will transfer your hyperlink to the created PDF - perfect enough for me…
The ContuttoPDF plugin is based on DOMPDF which requires PHP 5 and it needs several extensions to be activated in order to be able to run. Following are the extensions which need to be activated before installing ContuttoPDF:
- XML extension
- GD extension
- PCRE extension
- DOM extension
- MBstring extension
Installing the plugin
- Upload the folder pdf-themes to your wp-content/ directory.
- Upload the folder contuttopdf to your wp-content/plugins/ directory.
- Important: Change the permissions of the directory wp-content/plugins/contuttopdf/dompdf/lib/fonts, so that it is writable by the web server.
- Go to your Plugins page. In the description text for the ContuttoPDF plugin, click on “compatibility test”.
If all requirements are met and the generating of the demo page works, you can activate the plugin. - Now put a PDF button on your page with < ?php contutto_pdfbutton(); ?> somewhere in your template. Instead of a button, you can also have a text, with something like < ?php contutto_pdfbutton(’This page as PDF’); ?>. You can apply CSS styling to the anchor via its id=”pdfbutton”.
Note: ContuttoPDF use theme based styling to create the design layout of the PDF. To run it for the first time please make sure you copy the “pdf-themes” folder included in the instalation package to /wp-content folder of your WordPress instalation.
if you experiencing an error related to something like insufficient memory that means you need to set the memory limit to run the application a little bit higher. For example, to increase the memory limit you can put this line into the php.ini file:
To see the result of PDF created with this plugin, you can click the “This page as PDF” link on the footer block of this post. You can download ContuttoPDF from the plugin’s homepage and one advice: don’t use DAP, somehow I get forbidden message when using it to download this plugin.
Download ContuttoPDF Wordpress Plugin (270 KB)
If you need a clue to start customizing the PDF output, you can also read my post here. It’s simple, you only need to edit the CSS for basic layout.
The following posts are programmatically considered as related to the current post by YARPP Plugin:
- Customizing the PDF file created with ContuttoPDF Wordpress Plugin
- Wordpress, Combining ContuttoPDF with Code Snippet Plugin to get your code sample printed on the PDF
- The Code Snippet Plugin, my favourite syntax highlighter plugin for WordPress
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer
- The Modified Version of phoogle WordPress plugin - Eliminating the needs of Exec-PHP
8 Responses to “ContuttoPDF (Wordpress Plugin to convert your Content to PDF)”
Leave a Reply
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Comments - Thanks Guys :)
Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.














January 31st, 2008 at 8:48 pm
Great ! And Wp will go to push down a Joomla.
Btw, is it possible to request some plugins :D
February 2nd, 2008 at 2:13 am
Some plugins? That’s gotta be more than one I guess. What kind of plugins Bro? Let’s try to build it together, even I had never done it before, hehe
Cheers…:D
February 5th, 2009 at 11:25 pm
Hi Daniel! I don’t know where I should put this “memory_limit=32M”. I’m in troubles with the plugin, I want to print some tails and it says: error 500: internal server error (or something like that… it’s in Spanish). When they’re shorts, there’s no problem.
Can u help me? Thanks in advance :)))
Miss Lunatic’s last blog post: I Certamen Relatia
August 15th, 2009 at 3:07 pm
@Luna: You should put it on the php.ini file of your domain. Most hosting provider will give you permission to create your own php.ini, if your don’t have the permission, you can try to email their support to do it for you…
October 25th, 2009 at 11:28 pm
Are there any templates that are free of charge.
December 31st, 2009 at 9:33 am
How do I activate those extensions?
February 23rd, 2010 at 12:44 am
Hi,
Any idea how to have ContuttoPDF fetch the correct page language?
May 29th, 2010 at 11:04 pm
@Wes: you can activate those extensions by editing you php.ini file. Just put the name of the extension in it like this for example:
extension=gd.so
@Therese: I have no idea atm, but will inform you when I do.