WP Post to PDF Enhanced renders posts & pages as downloadable PDFs for archiving and/or printing.
WP Post to PDF Enhanced is based on the original WP post to PDF. It renders posts & pages as downloadable PDFs for archiving and/or printing.
Configuration options are available for the presentation and placement of the PDF link/icon in the article, custom header image, included/excluded posts/pages, fonts for various sections (header, footer, article, etc.), caching of previously-rendered PDFs, and much more.
It is possible to limit access to PDFs to registered users or present the link/icon to all visitors.
WP Post to PDF Enhanced is completely self-contained, and does not rely on any third party to render PDFs; does not require any additional plugins, either.
For detailed documentation visit [the support page] http://www.2rosenthals.net/wordpress/help/general-help/wp-post-to-pdf-enhanced/ .
/wp-content/plugins/
directoryMain Options page
Include/Exclude Content Types, Posts, Pages; Caching
Icon/Link Presentation options (where the PDF icon should appear)
General options (accommodate shortcodes from other plugins, what to include in the PDF header area, etc.)
Header options (show on all pages, set logo, set header margin)
Body options (featured image inclusion, custom css, custom bullet image, image scaling, etc.)
Footer options (custom footer, size and positioning, border, alignment, footer margin)
Typography (header, footer, body fonts and sizes)
Page Size & Units
Sample WordPress page; note PDF icon (top left positioning selected)
Sample PDF (minimal header options; default fonts and sizes)
Presently, there is no automated way of migrating optioins from one plugin to the other.
If you have database access, before installing WP Post to PDF Enhanced, create a new row in the wp_options
table. Assign a unique option_id
value, set the option_name
to wpptopdfenh
, and copy the contents of the wpptopdf option_value
field to the new wpptopdfenh option_value
field. You may need to edit any path references referencing /wp-post-to-pdf
to /wp-post-to-pdf-enhanced
.
If you do not have database access, note all of the options you have set for WP Post to PDF before disabling/uninstalling it, so that you may re-enter them upon activating WP Post to PDF Enhanced.
Be sure to copy any custom images from the /wp-post-to-pdf
paths to /wp-post-to-pdf-enhanced
paths (e.g., wp-content/uploads/wp-post-to-pdf-logo.png -> wp-content/uploads/wp-post-to-pdf-enhanced-logo.png
).
Finally, if you have used any manual placement tags for the PDF icon in your theme(s), you’ll need to edit these manually (e.g., <?php if (function_exists("wpptopdf_display_icon")) echo wpptopdfenh_display_icon();?>
needs to be edited to read <?php if (function_exists("wpptopdfenh_display_icon")) echo wpptopdfenh_display_icon();?>
).
None of your previous option settings in your WordPress database have been altered or removed. If you have moved any files from the original locations (instead of copying them), you’ll need to move them back, and as per the last item above, if you have used any manual placement tags in your theme(s), you’ll need to revert those changes.
WP Post to PDF Enhanced is a wrapper for the TCPDF library, which does all the heavy lifting. TCPDF does an admirable job of converting HTML to PDF, but it is very particular about the quality of the HTML being handed to it. Likely, there is a missing HTML tag which may be acceptable to most browsers (i.e., does not generate an error, and renders fine on-screen), but which is not entirely according to spec. The first suggestion is to check your code in the raw HTML editor in WordPress (not the visual editor). Look for odd things such as paragraph tags in the middle of table cells (common issue), missing alignment tags, etc.
See the previous entry. Missing graphics and such are common symptoms of non-standard HTML preceding the image, causing TCPDF to simply stop processing the input data.
Other plugins can cause difficulty for WP Post to PDF Enhanced. This is particularly true for plugins which filter output to the browser. A known conflict is with NextGen Gallery. Try adding add_filter( 'run_ngg_resource_manager', '__return_false' );
to your theme’s functions.php as a workaround. The same technique may be useful for other plugins (though some detective work will be necessary to determine which function needs to be filtered).
The default fonts used are Helvetica, which is a core (built into most PDF viewers) font, but not a Unicode font. This avoids downloading the entire font package. However, if you find that your text is not rendering, try a DejaVu font first, before reporting this as a bug. You may set this in the options panel.
You may either use the WordPress Plugin page for WP Post to PDF Enhanced, or the official support page on my blog: http://www.2rosenthals.net/wordpress/help/general-help/wp-post-to-pdf-enhanced/ .