Export a single PDF with all posts, or custom post types.
You can also export a single post, or the exact number you need.
IMPORTANT This plugin requires at least 512MB of free RAM available, or it will timeout / return an error.
The plugin checks if a pdf already exists with the same date (ddMonyear), if yes, the existing pdf will be served, otherwise a new will be generated. Since the PDF generation uses up a lot of resources, this will prevent too many runs of the plugin and the crashing of your server.
Check the example below or the FAQ for ways to force the PDF generation anyway.
Depending on how many posts you have, it might take from a few seconds to several minutes for a new PDF to be generated.
If no PDF is generated you probably don’t have enough server resources. This can’t be fixed, as PDF libraries are very resource-hungry.
Ask your hosting to check how many resources you would need to run the plugin and if there is anything you can do, within your hosting limits, to make sure the plugin has enough or appropriate RAM/PHP settings.
If you don’t use a custom url, hence you don’t add the
post_type parameter to the url, the default post type exported will always be WP default
The PDF Template
Currently, the template for the each exported post is very basic (and a table, since floating doesn’t play nicely with the DOMPDF library), feel free to edit it here
wp-content/plugins/simple-pdf-exporter/process/pdf_layout.php, only if you know what you are doing.
Your layout must be echoed in php. eg.
echo '<div>the content goes here</div>'; or it won’t show up in the PDF.
You can use a custom CSS to customize the layout.
Create a pdf_export.css in your theme folder, otherwise the plugin’s default (and really basic) CSS will be used (you can find it here
Check the FAQ before opening new threads in the forum!
Contact me if you want a custom version of the plugin, for a fee (contact form at shambix.com).
Libraries & Credits