ຄຳອະທິບາຍ
PDF Generator for Posts & Pages is the easiest way to let your visitors download a beautifully formatted PDF of any WordPress post, page, or custom post type — with zero coding required.
Whether you run a blog, a WooCommerce store, a job board, or a directory site, this plugin adds a Download PDF button directly on your content pages. Visitors get a clean, print-ready PDF in one click.
Demo | Support | Pro Version | Documentation
Why Use PDF Generator for Posts & Pages?
Most PDF plugins force you to edit PHP templates or paste complex shortcodes. This plugin gives you a visual drag-and-drop layout builder inside your WordPress dashboard — simply choose a layout, toggle which content blocks to include, and save. Your PDF updates instantly.
Core Features
Visual PDF Layout Builder
Choose from four ready-made page layouts — Single Column, Image Left, Image Right, and Image Top. Drag and reorder content blocks (title, image, description, custom fields, read more link). Set per-block alignment. See a live preview update as you make changes.
Supports All Post Types
Works with Posts, Pages, and any registered Custom Post Type — including WooCommerce Products, job listings, property listings, portfolios, and more. Enable or disable PDF export per post type from the admin settings.
ACF Custom Field Support
Automatically detects Advanced Custom Fields (ACF). When ACF is active, the Post Meta Keys tab shows a searchable dropdown of all your ACF field groups. Select the fields you want to include in the PDF — labels and values are pulled automatically. Works with text, number, email, URL, select, checkbox, and relationship fields.
Custom Post Meta Keys
No ACF? No problem. Manually add any WordPress post meta key. The plugin fetches the value from the database and includes it in the PDF. Search your existing meta keys server-side as you type — no page reload needed.
Full Color and Typography Control
Customize the PDF background color, body text color, header and footer background and text colors, download button colors, title font size, content font size, and image size — all from the Styling tab.
Header and Footer Text
Add custom header and footer text to every generated PDF page. Great for branding, copyright notices, or contact details.
Flexible Button Placement
Place the PDF download button before the content, after the content, or use the shortcode for a completely custom location.
Shortcode Support
Use [gmptp_single_post] to place the PDF button anywhere in your templates, or [gmptp_single_post id="123"] to generate a PDF button for a specific post from any page.
Translation Ready
All front-end strings — button label, loading messages, read more text — are fully translatable from the Translation tab in the admin. Compatible with WPML and Polylang.
Lightweight PDF Generation
PDFs are generated directly in the visitor’s browser using React PDF renderer — no server-side processing, no temporary files stored on your server, no load on your hosting.
Perfect For
- Bloggers — Let readers save and share articles as PDFs
- WooCommerce stores — Offer downloadable product spec sheets
- Job boards — Export job listings as formatted PDFs
- Real estate sites — Generate property information PDFs
- News and magazines — Archive articles in PDF format
- Documentation sites — Export guides and tutorials to PDF
- Schools and universities — Download course or event pages as PDFs
Our Other Free Plugins
- Post to PDF (Free) – The free version of this plugin
- PDF Catalog for WooCommerce – Generate multi-page product catalogs
- Product Enquiry for WooCommerce – Add enquiry forms to product pages
- Add to Quote for WooCommerce – Quote cart functionality
- Show Variations on Shop Page – Display product variations in shop listings
ພາບໜ້າຈໍ

Admin Dashboard – Clean settings panel with tabbed navigation and branding header 
PDF Layout Builder – Visual layout selector with live preview that updates in real time 
Content Block Controls – Drag to reorder blocks, toggle visibility, set per-block alignment 
Styling Tab – Color pickers for background, text, header, footer, and button colors
ການຕິດຕັ້ງ
- Upload the
post-to-pdf-profolder to the/wp-content/plugins/directory, or install it via the WordPress admin panel under Plugins Add New. - Activate the plugin through the Plugins menu in WordPress.
- Navigate to Post to PDF in the left admin menu.
- On the Single Post tab, enable the post types you want to show the PDF button on.
- Use the PDF Layout tab to choose your layout and configure content blocks.
- Use the Styling tab to match the PDF colors to your brand.
- Optionally, add post meta keys on the Post Meta Keys tab.
- Visit any enabled post type page on your site — the PDF download button will appear automatically.
ຄຳຖາມທີ່ພົບເລື້ອຍ
-
Does this plugin work with WooCommerce?
-
Yes. Enable the Products post type from the Single Post tab. The PDF will include the product title, featured image, short description, long description, and any custom meta fields you configure — including WooCommerce product attributes added as post meta.
-
Does this plugin support Advanced Custom Fields (ACF)?
-
Yes. When ACF is active, the Post Meta Keys tab shows a searchable dropdown of all your ACF field groups and fields. Select any field to include its label and value in the PDF. Both standard ACF field types and custom meta keys are supported.
-
By default the button appears before the post content. You can change this to after the content, or choose Custom Location and place the
[gmptp_single_post]shortcode exactly where you want it in your template. -
Yes. Go to the Translation tab in the plugin settings and update the button label, loading message, and other front-end strings.
-
Is the PDF generated on the server or in the browser?
-
PDFs are generated entirely in the visitor’s browser using a JavaScript PDF renderer. This means zero server load, no temporary files, and instant downloads — even on shared hosting.
-
Can I include custom post meta fields in the PDF?
-
Yes. Go to the Post Meta Keys tab, click Add Field, and either search your ACF fields from the dropdown or type any WordPress meta key manually. All added fields will be included in the PDF when the Custom Fields block is enabled in the Layout Builder.
-
What layouts are available for the PDF?
-
Four layouts are included: Single Column (all content stacked vertically), Image Left (image on left, content on right), Image Right (content on left, image on right), and Image Top (full-width image above all content).
-
Yes. Set Display Location to Custom Location (shortcode) in the Single Post settings, then place
[gmptp_single_post]anywhere in your theme or page builder. To generate a PDF button for a specific post from another page, use[gmptp_single_post id="post_id"]. -
Does it work with Gutenberg and page builders?
-
Yes. The shortcode works in Gutenberg’s shortcode block, as well as Elementor, Divi, Beaver Builder, WPBakery, and any builder that supports WordPress shortcodes.
-
Is the plugin translation ready?
-
Yes. All user-facing strings are translatable. The plugin is compatible with WPML, Polylang, and standard
.potfile-based translations. You can also translate all strings directly from the Translation tab in the admin settings without needing any translation plugin. -
What PHP version is required?
-
PHP 7.4 or higher is required. PHP 8.0+ is fully supported.
ການຣີວິວ
ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ
“PDF Generator for Posts & Pages – Export Any Post Type to PDF” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.
ຜູ້ຮ່ວມພັດທະນາແປ “PDF Generator for Posts & Pages – Export Any Post Type to PDF” ເປັນພາສາຂອງເຈົ້າ.
ສົນໃຈຮ່ວມພັດທະນາບໍ່?
ເບິ່ງລະຫັດ, ກວດເບິ່ງ ຄັງເກັບ SVN, ຫຼື ຕິດຕາມ ບັນທຶກການພັດທະນາ ຜ່ານ RSS.
ບັນທຶກການປ່ຽນແປງ
1.1
- Added: Visual PDF layout builder with four layout templates (Single Column, Image Left, Image Right, Image Top)
- Added: Drag-and-drop content block ordering with per-block alignment control
- Added: Live PDF layout preview that reflects saved colors and settings
- Added: ACF (Advanced Custom Fields) integration — searchable field dropdown in Post Meta Keys tab
- Added: Server-side search for post meta keys — no page load, debounced REST API queries
- Added: Radio-button source selector (ACF Field / Custom Meta) in Add Field modal
- Added: Rating, Support, and Upgrade to Pro buttons in the admin header
- Added: Toast notification system replacing modal popups
- Improved: Removed all @wordpress/components dependencies — fully custom UI components
- Improved: Color pickers now use native
<input type="color">wrapped in a styled label - Improved: Custom Fields now render in PDF without requiring legacy show/hide option
- Improved: PHP API uses
get_field()for ACF values withget_post_meta()fallback - Improved: Array and object ACF field values normalised to readable strings in PDF
- Fixed: PDF viewer removed from frontend — download button only, no inline preview
1.0
- Initial release
- Single post PDF download button
- Custom post type support
- Custom meta field support
- Color and typography customization
- Header and footer text
- Translation support
- Shortcode placement
