{"id":37448,"date":"2015-07-10T08:17:29","date_gmt":"2015-07-10T08:17:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dk-pdf\/"},"modified":"2026-01-15T19:52:17","modified_gmt":"2026-01-15T19:52:17","slug":"dk-pdf","status":"publish","type":"plugin","link":"https:\/\/fa.wordpress.org\/plugins\/dk-pdf\/","author":16292764,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.3.1","stable_tag":"2.3.1","tested":"6.9.4","requires":"3.9","requires_php":"8.0","requires_plugins":null,"header_name":"DK PDF","header_author":"Emili Castells","header_description":"","assets_banners_color":"fefaec","last_updated":"2026-01-15 19:52:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/dinamiko.dev","rating":4.6,"author_block_rating":0,"active_installs":4000,"downloads":105470,"num_ratings":43,"support_threads":3,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.1":{"tag":"1.1","author":"dinamiko","date":"2015-08-08 08:56:14"},"1.2":{"tag":"1.2","author":"dinamiko","date":"2015-10-28 11:15:44"},"1.3":{"tag":"1.3","author":"dinamiko","date":"2015-11-22 14:27:47"},"1.4":{"tag":"1.4","author":"dinamiko","date":"2015-12-13 18:07:33"},"1.5":{"tag":"1.5","author":"dinamiko","date":"2016-01-17 16:36:31"},"1.6":{"tag":"1.6","author":"dinamiko","date":"2016-02-26 18:37:47"},"1.7":{"tag":"1.7","author":"dinamiko","date":"2016-05-08 08:53:51"},"1.8":{"tag":"1.8","author":"dinamiko","date":"2016-10-31 13:12:57"},"1.9":{"tag":"1.9","author":"dinamiko","date":"2017-04-14 08:26:29"},"1.9.1":{"tag":"1.9.1","author":"dinamiko","date":"2017-06-25 10:52:08"},"1.9.10":{"tag":"1.9.10","author":"dinamiko","date":"2025-06-14 15:48:43"},"1.9.2":{"tag":"1.9.2","author":"dinamiko","date":"2017-09-16 10:53:29"},"1.9.3":{"tag":"1.9.3","author":"dinamiko","date":"2017-09-16 16:25:17"},"1.9.6":{"tag":"1.9.6","author":"dinamiko","date":"2021-03-24 09:49:26"},"1.9.7":{"tag":"1.9.7","author":"dinamiko","date":"2024-10-07 18:33:21"},"1.9.8":{"tag":"1.9.8","author":"dinamiko","date":"2024-10-12 13:11:53"},"1.9.9":{"tag":"1.9.9","author":"dinamiko","date":"2024-12-16 18:11:38"},"2.0.0":{"tag":"2.0.0","author":"dinamiko","date":"2025-07-07 18:27:50"},"2.0.1":{"tag":"2.0.1","author":"dinamiko","date":"2025-07-14 17:34:29"},"2.0.2":{"tag":"2.0.2","author":"dinamiko","date":"2025-07-17 18:12:19"},"2.1.0":{"tag":"2.1.0","author":"dinamiko","date":"2025-10-11 14:33:22"},"2.2.0":{"tag":"2.2.0","author":"dinamiko","date":"2025-11-09 19:44:25"},"2.3.0":{"tag":"2.3.0","author":"dinamiko","date":"2025-12-13 11:31:07"},"2.3.1":{"tag":"2.3.1","author":"dinamiko","date":"2026-01-15 19:52:17"}},"upgrade_notice":[],"ratings":{"1":4,"2":0,"3":0,"4":3,"5":36},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3396282,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3396282,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3396282,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3396282,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","1.9.1","1.9.10","1.9.2","1.9.3","1.9.6","1.9.7","1.9.8","1.9.9","2.0.0","2.0.1","2.0.2","2.1.0","2.2.0","2.3.0","2.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3322479,"resolution":"1","location":"assets","locale":""},"screenshot-10.jpg":{"filename":"screenshot-10.jpg","revision":3322479,"resolution":"10","location":"assets","locale":""},"screenshot-11.jpg":{"filename":"screenshot-11.jpg","revision":3322479,"resolution":"11","location":"assets","locale":""},"screenshot-12.jpg":{"filename":"screenshot-12.jpg","revision":3418879,"resolution":"12","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3322479,"resolution":"2","location":"assets","locale":""},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":3418879,"resolution":"3","location":"assets","locale":""},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":3322479,"resolution":"4","location":"assets","locale":""},"screenshot-5.jpg":{"filename":"screenshot-5.jpg","revision":3322479,"resolution":"5","location":"assets","locale":""},"screenshot-6.jpg":{"filename":"screenshot-6.jpg","revision":3322479,"resolution":"6","location":"assets","locale":""},"screenshot-7.jpg":{"filename":"screenshot-7.jpg","revision":3322479,"resolution":"7","location":"assets","locale":""},"screenshot-8.jpg":{"filename":"screenshot-8.jpg","revision":3322479,"resolution":"8","location":"assets","locale":""},"screenshot-9.jpg":{"filename":"screenshot-9.jpg","revision":3322479,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"Front-end PDF Button","2":"PDF Button settings","3":"PDF Setup settings","4":"PDF Header &amp; Footer settings","5":"PDF Custom CSS","6":"PDF Templates","7":"Single post PDF","8":"Category PDF","9":"WooCommerce Product PDF","10":"WooCommerce Shop PDF","11":"Disable PDF Button Metabox","12":"Custom Fields support","13":"Custom Fonts Manager"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1764,140699,8842,176758,70093],"plugin_category":[50],"plugin_contributors":[83873],"plugin_business_model":[],"class_list":["post-37448","plugin","type-plugin","status-publish","hentry","plugin_tags-pdf","plugin_tags-pdf-generator","plugin_tags-post-to-pdf","plugin_tags-woocommerce-pdf","plugin_tags-wordpress-pdf-generator","plugin_category-media","plugin_contributors-dinamiko","plugin_committers-dinamiko","plugin_committers-torstenbulk"],"banners":{"banner":"https:\/\/ps.w.org\/dk-pdf\/assets\/banner-772x250.png?rev=3396282","banner_2x":"https:\/\/ps.w.org\/dk-pdf\/assets\/banner-1544x500.png?rev=3396282","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dk-pdf\/assets\/icon-128x128.png?rev=3396282","icon_2x":"https:\/\/ps.w.org\/dk-pdf\/assets\/icon-256x256.png?rev=3396282","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-1.jpg?rev=3322479","caption":"Front-end PDF Button"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-2.jpg?rev=3322479","caption":"PDF Button settings"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-3.jpg?rev=3418879","caption":"PDF Setup settings"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-4.jpg?rev=3322479","caption":"PDF Header &amp; Footer settings"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-5.jpg?rev=3322479","caption":"PDF Custom CSS"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-6.jpg?rev=3322479","caption":"PDF Templates"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-7.jpg?rev=3322479","caption":"Single post PDF"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-8.jpg?rev=3322479","caption":"Category PDF"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-9.jpg?rev=3322479","caption":"WooCommerce Product PDF"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-10.jpg?rev=3322479","caption":"WooCommerce Shop PDF"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-11.jpg?rev=3322479","caption":"Disable PDF Button Metabox"},{"src":"https:\/\/ps.w.org\/dk-pdf\/assets\/screenshot-12.jpg?rev=3418879","caption":"Custom Fields support"}],"raw_content":"<!--section=description-->\n<p><strong>Transform your WordPress content into professional PDF documents<\/strong><\/p>\n\n<p>Generate stunning, brand-consistent PDF files from your WordPress posts, pages, custom post types, and WooCommerce products with just one click. Perfect for content creators, businesses, and developers who need reliable PDF generation.<\/p>\n\n<p><a href=\"https:\/\/dinamiko.dev\/plugins\/dk-pdf-wordpress-pdf-generator\/\">Homepage<\/a> | <a href=\"https:\/\/demo-dk-pdf.dinamiko.dev\/\">View Demo<\/a> | <a href=\"https:\/\/dinamiko.dev\/docs-categories\/dk-pdf-documentation\/\">Documentation<\/a> | <a href=\"https:\/\/www.youtube.com\/playlist?list=PLWqrakko3Z0T0As28ucC9YUoi_Ciju6u1\">YouTube<\/a><\/p>\n\n<p>[youtube https:\/\/youtu.be\/ZQoXLbu5ldI]<\/p>\n\n<h3>Powerful features that deliver results<\/h3>\n\n<ul>\n<li><strong>Multi-Content Generation<\/strong>: Create PDFs from posts, pages, custom post types, taxonomies, WooCommerce products, shop and categories<\/li>\n<li><strong>Selective Content Display<\/strong>: Choose exactly what appears in your PDFs - featured images, post dates, authors, categories, and more<\/li>\n<li><strong>Custom Fields Support<\/strong>: Add custom fields including Advanced Custom Fields, see <a href=\"https:\/\/dinamiko.dev\/docs\/custom-fields\/\">documentation<\/a><\/li>\n<li><strong>Custom Font Manager<\/strong>: Upload and manage custom .ttf fonts to match your brand typography in generated PDFs: see <a href=\"https:\/\/dinamiko.dev\/docs\/dk-pdf-fonts-user-guide\/\">documentation<\/a><\/li>\n<li><strong>Multi-Language Support<\/strong>: Core fonts management for Arabic, Hebrew, Indic, and CJK languages ensuring proper character rendering<\/li>\n<li><strong>Button Visibility by User Role<\/strong>: Control which WordPress user roles can see and generate PDFs, see <a href=\"https:\/\/dinamiko.dev\/docs\/pdf-button-visibility-by-role\/\">documentation<\/a><\/li>\n<li><strong>WooCommerce Integration<\/strong>: Include product details like prices, SKUs, categories, and more<\/li>\n<li><strong>Header &amp; Footer Control<\/strong>: Add logo, custom text, and branding elements to headers and footers<\/li>\n<li><strong>Custom CSS Support<\/strong>: Apply your own styling to match your brand perfectly<\/li>\n<li><strong>Smart Content Control<\/strong>: Use powerful shortcodes to hide sections, create column layouts, and add page breaks exactly where you need them<\/li>\n<li><strong>Template Overrides<\/strong>: Create custom templates in your theme for complete design and content control<\/li>\n<li><strong>WordPress Hooks<\/strong>: Extensive filter and action hooks for advanced customization<\/li>\n<\/ul>\n\n<h3>Perfect for every use case<\/h3>\n\n<ul>\n<li><strong>Content Creators &amp; Bloggers<\/strong>: Transform your best blog posts into downloadable PDFs for lead magnets or offline reading.<\/li>\n<li><strong>E-commerce Sites<\/strong>: Create product catalogs and detailed product sheets from your WooCommerce products.<\/li>\n<li><strong>Developers<\/strong>: Build custom PDF solutions for clients using template overrides and WordPress hooks.<\/li>\n<li><strong>Educational Sites<\/strong>: Convert course materials, lessons, and resources into portable PDF formats.<\/li>\n<\/ul>\n\n<h3>DK PDF Custom Services<\/h3>\n\n<p>Need custom functionality for the DK PDF Plugin? I provide <a href=\"https:\/\/dinamiko.dev\/dk-pdf-custom-services\/\">professional customization services<\/a> to extend and enhance your PDF generation capabilities.<\/p>\n\n<!--section=installation-->\n<p>Installing \"DK PDF\" can be done either by searching for \"DK PDF\" via the \"Plugins &gt; Add New\" screen in your WordPress dashboard, or by using the following steps:<\/p>\n\n<ol>\n<li>Download the plugin via WordPress.org<\/li>\n<li>Upload the ZIP file through the 'Plugins &gt; Add New &gt; Upload' screen in your WordPress dashboard<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Fix - Server-Side Request Forgery by sanitizing external URLs from content, and configuring mPDF to restrict external resource fetching.<\/li>\n<\/ul>\n\n<h4>2.3.0<\/h4>\n\n<ul>\n<li>Enhancement - Add custom font manager for uploading and managing custom .ttf fonts in PDF generation.<\/li>\n<li>Enhancement - Add core fonts management, recommended for Arabic, Hebrew, Indic and CJK languages support.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Enhancement - Display custom fields in WooCommerce product PDF.<\/li>\n<li>Fix - Fatal error when generating PDFs for posts with non-publish status.<\/li>\n<li>Fix - Respect 'shortcode only' position setting on WooCommerce and WordPress archive pages.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Enhancement - Add button visibility by role.<\/li>\n<li>Enhancement - Add max. number of items to display in the PDF.<\/li>\n<li>Fix - Fatal error with composer package versions.<\/li>\n<li>Fix - Wrong header and footer title for categories and shop.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Enhancement - Add custom fields support.<\/li>\n<li>Fix - Display pdf button in wc taxonomies to apply.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Fix - Wrong post content in single templates.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Fix - Broken shortcodes after 2.0.0 upgrade.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Enhancement - New template system and content display including archive and single templates.<\/li>\n<li>Enhancement - Support for WooCommerce products including single, shop and archive pages.<\/li>\n<\/ul>\n\n<h4>1.9.10<\/h4>\n\n<ul>\n<li>Enhancement - Add new template sets system.<\/li>\n<li>Enhancement - Add new <code>dkpdf_content_template<\/code> filter to select template conditionally.<\/li>\n<li>Enhancement - Add output PDF html for debugging purposes.<\/li>\n<li>Enhancement - Increase init settings action priority to allow more custom post types to apply.<\/li>\n<\/ul>\n\n<h4>1.9.9<\/h4>\n\n<ul>\n<li>Fix - Plugin templates not displaying CSS correctly.<\/li>\n<\/ul>\n\n<h4>1.9.8<\/h4>\n\n<ul>\n<li>Fix - Add custom namespace to avoid issues with third party composer packages.<\/li>\n<li>Fix - Disable deprecated dynamic property message.<\/li>\n<\/ul>\n\n<h4>1.9.7<\/h4>\n\n<ul>\n<li>Enhancement - Update plugin requirements and mpdf library to PHP 8+<\/li>\n<li>Fix - Reflected Cross-Site Scripting security issue<\/li>\n<\/ul>\n\n<h4>1.9.6<\/h4>\n\n<ul>\n<li>Update mPDF library to latest version.<\/li>\n<li>New filters <code>dkpdf_mpdf_font_dir<\/code>, <code>dkpdf_mpdf_font_data<\/code>, <code>dkpdf_mpdf_temp_dir<\/code>. Thanks to <a href=\"https:\/\/github.com\/joostvanbockel\">joostvanbockel<\/a>.<\/li>\n<\/ul>\n\n<h4>1.9.3<\/h4>\n\n<ul>\n<li>Reverting to 1.9.1, something went wrong in 1.9.2<\/li>\n<\/ul>\n\n<h4>1.9.2<\/h4>\n\n<ul>\n<li>PHP7: Remove some warnings, see <a href=\"https:\/\/github.com\/Dinamiko\/dk-pdf\/issues\/38\">issue #38<\/a>, <a href=\"https:\/\/github.com\/Dinamiko\/dk-pdf\/issues\/48\">issue #48<\/a>.<\/li>\n<li>HTTPS: Fix images not working after move to https, see <a href=\"https:\/\/github.com\/Dinamiko\/dk-pdf\/issues\/51\">issue #51<\/a>.<\/li>\n<\/ul>\n\n<h4>1.9.1<\/h4>\n\n<ul>\n<li>Added PDF Protection in PDF Setup Settings<\/li>\n<li>New Columns Shortcodes: [dkpdf-columns] and [dkpdf-columnbreak]<\/li>\n<li>New Filter: dkpdf_pdf_filename<\/li>\n<li>Fixed Admin scripts enqueued on all pages (thanks to Aristeides Stathopoulos @aristath)<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Added shortcode tag attribute to dkpdf-remove shortcode<\/li>\n<li>FontAwesome icons support<\/li>\n<li>Added post title as PDF filename when downloaded from browser<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>New filter dkpdf_pdf_format<\/li>\n<li>New filter dkpdf_header_title<\/li>\n<li>Option for remove default PDF button when adding PDF button manually (thanks to Renato Alves)<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>New filters (see documentation filters)<\/li>\n<li>Fixed github issues #21 #23 #24<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>4.4.2 Tested<\/li>\n<li>Added DK PDF Generator compatibility (css + shortcodes)<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Added PDF Custom CSS setting<\/li>\n<li>Sanitized settings fields<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added [dkpdf-pagebreak] shortcode for adding page breaks<\/li>\n<li>Added filters dkpdf_header_pagination and dkpdf_footer_pagination<\/li>\n<li>Added addons page to admin menu<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>New DK PDF admin menu for better usability<\/li>\n<li>Added a PDF Setup tab for adjusting page orientation, font size and margins of the PDF<\/li>\n<li>Added [dkpdf-remove] shortcode for removing pieces of content in the generated PDF<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Settings link in plugins list page<\/li>\n<li>Adjusts header template for better logo display<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Removes dkpdf-button shortcode in the generated PDF<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"DK PDF allows your site visitors generate PDF files from WordPress posts, pages, custom post types and WooCommerce products using a button.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/37448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=37448"}],"author":[{"embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/torstenbulk"}],"wp:attachment":[{"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=37448"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=37448"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=37448"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=37448"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=37448"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fa.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=37448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}