=== DK PDF - WordPress PDF Generator ===
Contributors: dinamiko
Tags: pdf, wordpress pdf generator, pdf generator, woocommerce pdf, post to pdf
Requires at least: 3.9.6
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 2.3.1
License: MIT

DK PDF allows your site visitors generate PDF files from WordPress posts, pages, custom post types and WooCommerce products using a button.

== Description ==

**Transform your WordPress content into professional PDF documents**

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.

[Homepage](https://dinamiko.dev/plugins/dk-pdf-wordpress-pdf-generator/) | [View Demo](https://demo-dk-pdf.dinamiko.dev/) | [Documentation](https://dinamiko.dev/docs-categories/dk-pdf-documentation/) | [YouTube](https://www.youtube.com/playlist?list=PLWqrakko3Z0T0As28ucC9YUoi_Ciju6u1)

[youtube https://youtu.be/ZQoXLbu5ldI]

== Powerful features that deliver results ==

* **Multi-Content Generation**: Create PDFs from posts, pages, custom post types, taxonomies, WooCommerce products, shop and categories
* **Selective Content Display**: Choose exactly what appears in your PDFs - featured images, post dates, authors, categories, and more
* **Custom Fields Support**: Add custom fields including Advanced Custom Fields, see [documentation](https://dinamiko.dev/docs/custom-fields/)
* **Custom Font Manager**: Upload and manage custom .ttf fonts to match your brand typography in generated PDFs: see [documentation](https://dinamiko.dev/docs/dk-pdf-fonts-user-guide/)
* **Multi-Language Support**: Core fonts management for Arabic, Hebrew, Indic, and CJK languages ensuring proper character rendering
* **Button Visibility by User Role**: Control which WordPress user roles can see and generate PDFs, see [documentation](https://dinamiko.dev/docs/pdf-button-visibility-by-role/)
* **WooCommerce Integration**: Include product details like prices, SKUs, categories, and more
* **Header & Footer Control**: Add logo, custom text, and branding elements to headers and footers
* **Custom CSS Support**: Apply your own styling to match your brand perfectly
* **Smart Content Control**: Use powerful shortcodes to hide sections, create column layouts, and add page breaks exactly where you need them
* **Template Overrides**: Create custom templates in your theme for complete design and content control
* **WordPress Hooks**: Extensive filter and action hooks for advanced customization

== Perfect for every use case ==

* **Content Creators & Bloggers**: Transform your best blog posts into downloadable PDFs for lead magnets or offline reading.
* **E-commerce Sites**: Create product catalogs and detailed product sheets from your WooCommerce products.
* **Developers**: Build custom PDF solutions for clients using template overrides and WordPress hooks.
* **Educational Sites**: Convert course materials, lessons, and resources into portable PDF formats.

== DK PDF Custom Services ==
Need custom functionality for the DK PDF Plugin? I provide [professional customization services](https://dinamiko.dev/dk-pdf-custom-services/) to extend and enhance your PDF generation capabilities.

== Installation ==

Installing "DK PDF" can be done either by searching for "DK PDF" via the "Plugins > Add New" screen in your WordPress dashboard, or by using the following steps:

1. Download the plugin via WordPress.org
2. Upload the ZIP file through the 'Plugins > Add New > Upload' screen in your WordPress dashboard
3. Activate the plugin through the 'Plugins' menu in WordPress

== Screenshots ==

1. Front-end PDF Button
2. PDF Button settings
3. PDF Setup settings
4. PDF Header & 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

== Changelog ==

= 2.3.1 =
- Fix - Server-Side Request Forgery by sanitizing external URLs from content, and configuring mPDF to restrict external resource fetching.

= 2.3.0 =
- Enhancement - Add custom font manager for uploading and managing custom .ttf fonts in PDF generation.
- Enhancement - Add core fonts management, recommended for Arabic, Hebrew, Indic and CJK languages support.

= 2.2.1 =
- Enhancement - Display custom fields in WooCommerce product PDF.
- Fix - Fatal error when generating PDFs for posts with non-publish status.
- Fix - Respect 'shortcode only' position setting on WooCommerce and WordPress archive pages.

= 2.2.0 =
- Enhancement - Add button visibility by role.
- Enhancement - Add max. number of items to display in the PDF.
- Fix - Fatal error with composer package versions.
- Fix - Wrong header and footer title for categories and shop.

= 2.1.0 =
- Enhancement - Add custom fields support.
- Fix - Display pdf button in wc taxonomies to apply.

= 2.0.2 =
- Fix - Wrong post content in single templates.

= 2.0.1 =
- Fix - Broken shortcodes after 2.0.0 upgrade.

= 2.0.0 =
* Enhancement - New template system and content display including archive and single templates.
* Enhancement - Support for WooCommerce products including single, shop and archive pages.

= 1.9.10 =
* Enhancement - Add new template sets system.
* Enhancement - Add new `dkpdf_content_template` filter to select template conditionally.
* Enhancement - Add output PDF html for debugging purposes.
* Enhancement - Increase init settings action priority to allow more custom post types to apply.

= 1.9.9 =
* Fix - Plugin templates not displaying CSS correctly.

= 1.9.8 =
* Fix - Add custom namespace to avoid issues with third party composer packages.
* Fix - Disable deprecated dynamic property message.

= 1.9.7 =
* Enhancement - Update plugin requirements and mpdf library to PHP 8+
* Fix - Reflected Cross-Site Scripting security issue

= 1.9.6 =
* Update mPDF library to latest version.
* New filters `dkpdf_mpdf_font_dir`, `dkpdf_mpdf_font_data`, `dkpdf_mpdf_temp_dir`. Thanks to [joostvanbockel](https://github.com/joostvanbockel).

= 1.9.3 =
* Reverting to 1.9.1, something went wrong in 1.9.2

= 1.9.2 =
* PHP7: Remove some warnings, see [issue #38](https://github.com/Dinamiko/dk-pdf/issues/38), [issue #48](https://github.com/Dinamiko/dk-pdf/issues/48).
* HTTPS: Fix images not working after move to https, see [issue #51](https://github.com/Dinamiko/dk-pdf/issues/51).

= 1.9.1 =
* Added PDF Protection in PDF Setup Settings
* New Columns Shortcodes: [dkpdf-columns] and [dkpdf-columnbreak]
* New Filter: dkpdf_pdf_filename
* Fixed Admin scripts enqueued on all pages (thanks to Aristeides Stathopoulos @aristath)

= 1.9 =
* Added shortcode tag attribute to dkpdf-remove shortcode
* FontAwesome icons support
* Added post title as PDF filename when downloaded from browser

= 1.8 =
* New filter dkpdf_pdf_format
* New filter dkpdf_header_title
* Option for remove default PDF button when adding PDF button manually (thanks to Renato Alves)

= 1.7 =
* New filters (see documentation filters)
* Fixed github issues #21 #23 #24

= 1.6 =
* 4.4.2 Tested
* Added DK PDF Generator compatibility (css + shortcodes)

= 1.5 =
* Added PDF Custom CSS setting
* Sanitized settings fields

= 1.4 =
* Added [dkpdf-pagebreak] shortcode for adding page breaks
* Added filters dkpdf_header_pagination and dkpdf_footer_pagination
* Added addons page to admin menu

= 1.3 =
* New DK PDF admin menu for better usability
* Added a PDF Setup tab for adjusting page orientation, font size and margins of the PDF
* Added [dkpdf-remove] shortcode for removing pieces of content in the generated PDF

= 1.2 =
* Settings link in plugins list page
* Adjusts header template for better logo display

= 1.1 =
* Removes dkpdf-button shortcode in the generated PDF

= 1.0 =
* Initial release
