=== Posts to PDF - Backend Batch Export === Contributors: onodev77 Tags: posts to pdf, export posts, pages to pdf, export, batch export Requires at least: 5.0 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 2.9 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Export WordPress posts, pages and custom post types to PDF with batch export, preview and separate PDF files. == Description == Posts to PDF lets administrators export WordPress content as PDF directly from the backend. Free features include: * Export selected posts/pages into one PDF file. * Search and paginated selection. * PDF preview. * PDF style options such as featured image, author, date, excerpt, page size and orientation. PRO features include: * Select all posts/pages from a site or search result. * Export each post/page as a separate PDF file. * Progress bar for large batch exports. * Unlimited bulk export workflow. Info & Upgrade: [WordPress Posts to PDF PRO](https://softwareapp.it/wordpress-posts-to-pdf/) == Installation == 1. Upload the plugin folder to `/wp-content/plugins/`. 2. Activate the plugin through the Plugins menu in WordPress. 3. Open Posts to PDF from the WordPress admin menu. 4. Select content and start the export. == Frequently Asked Questions == = Can I select all posts from a site? = Yes. In the PRO version you can select all posts/pages from the current post type or from the current search results. = Can I export one PDF per post/page? = Yes. The PRO version includes Separate PDFs mode: 1 post/page = 1 PDF file. = Can I choose the local folder where PDFs are saved? = PDFs are downloaded by the browser. The local download folder is controlled by the browser/operating system. The plugin can generate files progressively, but WordPress cannot directly choose a user's local folder. = Can I customize the PDF appearance? = Yes. You can include/exclude featured image, author, date and excerpt, and choose page size and orientation. = Does it support page builders like Divi, WPBakery, Avada or Elementor? = The plugin renders WordPress content using the standard content filters first. If builder shortcodes are still visible in the PDF, the plugin applies a compatibility cleanup for common builders such as Divi, WPBakery/Visual Composer, Avada/Fusion Builder, Themify and similar modules, while keeping readable text content where possible. = Are Divi image modules included in the PDF? = The plugin includes a fallback that converts common Divi image module shortcodes into normal PDF images when Divi does not render them in the export context. = Are tables supported in exported PDFs? = Yes. HTML tables are styled to fit the PDF page width. The plugin also includes a fallback for some builder/table shortcodes, but very complex frontend builder layouts may not be reproduced exactly in the PDF. == Changelog == = 2.9 = * Removed noscript fallback blocks before PDF rendering to prevent lazy-load image markup from being printed as visible text in exported PDFs. * Cleaned browser-only lazy loading attributes before Dompdf rendering. = 2.8 = * Improved Divi compatibility for image modules that were missing from exported PDFs. * Added conversion for Divi/Table Maker frontend table markup into standard HTML tables for better PDF rendering. * Improved recovery of builder images and tables when builder output is not available in the PDF export context. = 2.7 = * Improved Classic Editor image handling in PDFs. WordPress caption wrappers and fixed image dimensions are normalized so large images fit within Letter/A4 pages instead of being cut off. * Removed PDF-unfriendly image attributes such as fixed width/height, srcset and sizes before Dompdf rendering. = 2.5 = * Improved PDF image sizing so Classic Editor images fit within the PDF page width and are not cut off. * Added fallback conversion for common Divi image module shortcodes. * Improved table styling for PDF exports, including better width handling and word wrapping. * Added extra builder compatibility prefixes for Divi-related table/image modules. = 2.4 = * Added compatibility cleanup for common page builder shortcodes such as Divi, WPBakery/Visual Composer, Avada/Fusion Builder, Themify and Shortcodes Ultimate. * Builder shortcode wrappers are removed only as a fallback when they remain visible after normal WordPress content rendering. * Added FAQ notes about page builder compatibility. = 2.3 = * Improved export file security. = 2.2 = * Fixed individual separate PDF downloads when ZIP mode is disabled. * Added stricter ZIP validation to prevent empty ZIP downloads when files cannot be added by the server. * Improved temporary export cleanup after individual downloads. = 2.1 = * Fixed bulk export ID collection so “Select all results/site” exports all matching items instead of being affected by admin pagination or third-party query filters. * Improved compatibility with security/cache plugins and custom post type admin filters. = 2.0 = * Fixed Preview when using Select all results/site in PRO mode. Preview now loads the first 5 items from the full selected scope instead of showing the upgrade popup. * Improved PRO unlock code validation by ignoring spaces and non-alphanumeric characters. * Bumped admin asset version to avoid cached JavaScript from optimization plugins. = 1.7 = * Fixed the Free watermark so it is visible again and repeated on every PDF page. * Added an HTML fixed-position watermark layer plus Dompdf canvas stamping for better compatibility. * External images that Dompdf cannot reliably load are removed from the PDF instead of showing a broken-image box with an X. * Fixed ZIP downloads so files are saved with the correct .zip extension. * Renamed export mode to “Multiple Separate PDF files (1 Post in 1 PDF)”. * Increased the Free separate PDF limit from 5 to 20 posts/pages. = 1.5 = * Added preview loading spinner/progress indicator while Dompdf prepares the inline preview. * Added Free watermark to exported PDFs. PRO removes the watermark. * Separate PDF export is now available in Free for up to 20 posts/pages. * Separate PDFs are packaged into a single ZIP download to avoid browser multiple-download warnings. = 1.3 = * Improved admin interface. * Added PRO unlock field. * Added select all results/site workflow. * Added separate PDFs export mode with progress bar. * Added settings for filename prefix, page size, orientation and PDF content metadata. * Improved PDF styling. = 1.2 = * Corrections and improvements. = 1.1 = * Minor corrections. = 1.0 = * Initial release.