ContuttoPDF (Wordpress Plugin to convert your Content to PDF)

Posted by Daniel - 5,184 Views

contuttopdfBefore 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:

  1. XML extension
  2. GD extension
  3. PCRE extension
  4. DOM extension
  5. MBstring extension

Installing the plugin

  1. Upload the folder pdf-themes to your wp-content/ directory.
  2. Upload the folder contuttopdf to your wp-content/plugins/ directory.
  3. Important: Change the permissions of the directory wp-content/plugins/contuttopdf/dompdf/lib/fonts, so that it is writable by the web server.
  4. 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.
  5. 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:

memory_limit=32M

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.

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Tested Software - January 2008

8 Responses to “ContuttoPDF (Wordpress Plugin to convert your Content to PDF)”

  1. Anak Medan Says:

    Great ! And Wp will go to push down a Joomla.
    Btw, is it possible to request some plugins :D

  2. Daniel Says:

    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

  3. Miss Lunatic Says:

    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

  4. Daniel Says:

    @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…

  5. Louis Says:

    Are there any templates that are free of charge.

  6. Wes Says:

    How do I activate those extensions?

  7. Therese Lachance Says:

    Hi,

    Any idea how to have ContuttoPDF fetch the correct page language?

  8. Daniel Says:

    @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.



Leave a Reply


Options for your comment:





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.

Coffee Break

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.