=== article2pdf === Contributors: Marc Schieferdecker Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=m_schieferdecker%40hotmail%2ecom&item_name=article2pdf%20wp%20plugin&no_shipping=0&no_note=1&tax=0¤cy_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8 Tags: pdf, article, print, printing, post, page, export Requires at least: 2.5.0 Tested up to: 2.7 Stable tag: 0.19 This plugin let your visitors download an article as PDF file: images, formats and tables included. You can specifiy a PDF template file as well. == Description == Article2pdf will convert any post or page to a pdf file and send it on demand to the browser. The images in the post or page will be included and you can configurate the pdf options via the plugin configuration page. You can also setup a pdf file, that is used as layout template for the generated pdf file. Links and formatings are included as well. Templates and options can be managed from the admin panel. Generated PDF files can be cached to reduce server load. == Installation == Install the plugin and activate it.
If you use non standard permalinks, add the link html code <a href="?article2pdf=1">PDF Version</a> to your theme. I put the html code into the "single.php" and the "page.php" of my theme and it works fine for me. Example link: http://my-blog.org/my-category/my-post/?article2pdf=1
If you use standard permalinks, add the following link to your theme: <a href="<?php the_permalink(); ?>&article2pdf=1">PDF Version</a>. Example link: http://my-blog.org/?p=123&article2pdf=1
A demo can be found at http://www.das-motorrad-blog.de/meine-wordpress-plugins/ - feel free to test the plugin by selecting a post or a page and then click "PDF" in the upper right corner. == Frequently Asked Questions == = The link from the installation guide isn't working, why? = The link to use depends on the WordPress permalink settings. If you use the standard permalinks ("?p=123") you can't add a link like "?article2pdf=1" because you can't use the question mark twice in URL transmitted parameters, eg: "?p=123?article2pdf=1" will definitly not work! The link has to be "?p=123&article2pdf=1" because multiple URL transitted parameters are seperated by an ampersand. The question mark seperates the requested file from the transmitted options.
If you use not the standard permalink option, then the link has to be created with an question mark because your permalink is something like "/archive/2008/10/my-article/", or simply "/my-article/". If the link "/my-article/?article2pdf=1" is clicked, the plugin creates the pdf.
Another case is if you have an individual permalink structure and the structur set to "/%postname%". A little detail: The trailing slash is missing. Depending on your URL rewrite parameters the pdf link doesen't work sometimes. If that is the case try a link like this: "./?article2pdf=1". = What configuration options do I have? = * You can set the right/left/top/bottom margins * You can set a pdf file that is used as template for the generated pdf file * You can decide if pictures should be included into the pdf file * You can configure if the publication date is included into the pdf file * You can configure the outout format and locale of the publication date * You can set the font family, the font size, and the line height * You can activate caching of generated pdf files * You can upload and delete pdf template files with the plugin configuration page = Does article2pdf put my images into the pdf file? = Yes, it does if you configure that option in the plugins configuration page. = Does article2pdf links text and images? = Yes, since version 0.19 images and text is linked like in a webpage. When viewing the pdf you can click on a linked text or a linked image to open the URL in your browser. = Sometimes links of a post weren't included into the pdf file, why? = Check the html source of your post. If there is a line break in the html code of the link you have to fix that. The link html code has to be in one single line. I don't no why WordPress sometimes adds a line break to the link. I think its a result of the TinyMCE html editor. = Where I have to store my pdf template files? = You can use the upload option of the plugin configuration manager. If that fails you have to store the pdf template files in /wp-content/plugins/article2pdf/contributed/pdftemplates. Upload the files with your favourite ftp client. After upload you can choose your pdf template on the plugin configuration page. = What is the best value for the line height? = Half of the font size always will be rewarded with good results. = Will you improve this plugin? = Yes, that's the plan. If you have feature requests drop me a mail or leave a comment in my weblog. = I have further suggestions or problems? = Please report in the comments of my weblog or drop me an email. = How are the pdf files created? = I use the great fpdf lib (freeware). Have a look at http://www.fpdf.org. = Why is your english so terrible? = I'm from germany, sorry for my bad english.