2.4.0 (unofficial; refreshed 10 November, 2013):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.4.0.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.4.0-against-2.3.1.diff
Diff against my previous version (2.3.6 unofficial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.4.0.diff
What’s new:
Updated TCPDF to 6.0.043, including a huge number of new fonts (much larger package).
Fixed tcpdf/config/tcpdf_config.php, which was apparently the cause of the missing images in the previous releases of this build.
Added option to include tags in PDF, if present. Tags are presented under Categories, and as clickable links (what a job that was, as get_the_category_list works differently than get_the_tags). If no tags are present, the line is skipped in the resulting pdf.
Added check for existence of category list, in case we are generating a pdf from a page vs a post. If none found, the line is skipped in the resulting pdf.
Ugly workaround for:
PHP Warning: array_push() expects parameter 1 to be array, null given in tcpdf.php on line nnnnn
(Tweaked a line of code in tcpdf/tcpdf.php to allow for a conditional on the failing array statement. I suspect we are passing either some malformed or unexpected HTML to TCPDF.)
To-do:
Fix annoying truncation of certain PDFs due either to large size, large tables, or multiple images in posts/pages. Please advise if this is a problem.
Fix image positioning to better respect the HTML layout.
Add option to move date and/or category to the footer, with left, right, or center alignment.
Add option to specify the separator in a list of categories & list of tags.
Add option to remove paragraph break between author, categories, tags, date (to format better and waste less vertical space).
Add option to specify first or all categories (presently, we display the list, via get_the_category_list) and tags (completely different mechanism involved).
Add option to specify ordering/alignment (see above) of these items.
Allow exception to site-wide image scaling factor via shortcode (and add other shortcodes as overrides for various options set in the admin panel).
Allow for custom css definitions to apply to PDF (note that this is highly dependent upon css support in TCPDF class; this to-do list item refers to the ability to enter such css in the admin panel, and not to any specific css support). (This may be working better with the updated TCPDF build; please test and advise.)
Thanks to Jenny Beaumont for additional testing of the previous releases of this version!
Feedback is welcome and appreciated.
Note that you may request support here or via the support page on my blog.
I will likely fork this project to WP Post to PDF Enhanced. I’m currently weighing whether I really want to host my stuff on WordPress’ site (I am reticent to do that, as I don’t like other people having control over what I publish, though I realize that this will make updates easier). Stay tuned.
Enjoy!
Lewis