ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
Posted by Daniel - 10,668 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
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
Popular Entries
- Passing arguments to your VB.NET console application
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- Resize Image or Crop Image with Joe Lencioni’s Smart Image Resizer, WordPress Setup
- How to Get User Input and allowing more than 256 characters to be entered on .NET Console Application
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
- An example: Using CPort Delphi Component to read data from your cellphone
- Runtime-Form-Creation. Automatically creating child forms in a Delphi MDI application with a component array
- CPort Component (Serial port interface component for Delphi)
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer













