WordPress PDF Templates works quietly in the backround without cluttering your wp-admin with unnecessary menus and views. To see this plugin in action, try navigating to any post or page on your site and appending /pdf/ to the URL.
Is your content access-restricted? In that case, all you need to do is enable cookies for the plugin with define('FETCH_COOKIES_ENABLED', true);
in your wp-config.php
You can also try clearing the PDF cache by hard-refreshing your browser or disabling the PDF cache altogether with define( 'DISABLE_PDF_CACHE', true )
You can define supported post types in your theme functions.php with set_pdf_print_support($post_types)
The set_pdf_print_support function takes an array of post types (strings) as a parameter.
Example:
// add pdf print support to post type 'product' if(function_exists('set_pdf_print_support')) { set_pdf_print_support(array('post', 'page', 'product')); }
Just copy index-pdf.php from wp-content/plugins/wp-pdf-templates/ into your theme directory and start editing! If you wish to define different templates for different post types, you can do that too! Let's say you wish to create a new PDF template for pages. Just create a file called 'page-pdf.php' and create your template there. Note that this only works when a page.php exists in your theme.
Yes! You can define settings for the DOMPDF Library by editing your wp-config.php.
Example:
// use landscape A4 sized paper @ 180 DPI define('DOMPDF_PAPER_SIZE', 'A4'); define('DOMPDF_PAPER_ORIENTATION', 'landscape'); define('DOMPDF_DPI', 180);
See DOMPDF documentation for more options.
DOMPDF needs the proper font files to generate PDF files. There's a font adder utility built in to DOMPDF you can use to import any TrueType fonts. See this link for instructions: https://code.google.com/p/dompdf/wiki/Installation