ContuttoPDF (Wordpress Plugin to convert your Content to PDF)

Posted by Daniel - 3,660 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.

__________________________

Related posts brought to you by Yet Another Related Posts Plugin.

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

9 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. Coarveadvexon Says:

    As the call, so the echo :D

    Coarveadvexon’s last blog post: Ford Kuga 2.5 Turbo

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

  5. manoj Says:

    i want to use image scrap on my server but my server not suport. because my server version is 4.7.9 and minimum requirement is 5.0

  6. 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…

  7. Louis Says:

    Are there any templates that are free of charge.

  8. Wes Says:

    How do I activate those extensions?

  9. Therese Lachance Says:

    Hi,

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



Leave a Reply


Options for your comment:





Get my Full Feed Here or you can subscribe to one of my category based feeds below:
Coffee Break

Latest Blog Entries

Categories

Neighbours and Friends

Comments - Thanks Guys :)

  • Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
  • Marlena Albu: Super Blog, Dude! I am constantly on the watch for new and interesting sites and postings about audio equipment… which is what...
  • tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.
  • Sean: This is a great piece of code and thanks for adding the updates. Sean’s last blog post: Not All Text Message Marketing Is Created...
  • rodhy: Thank for your code, it very usefull for me. best regard.