Title: DK PDF &#8211; WordPress PDF Generator
Author: Torsten Chmielewski Bulk
Published: <strong>10 Tháng 7, 2015</strong>
Last modified: 15 Tháng 1, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/dk-pdf/assets/banner-772x250.png?rev=3396282)

![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)

# DK PDF – WordPress PDF Generator

 Bởi [Torsten Chmielewski Bulk](https://profiles.wordpress.org/torstenbulk/)

[Tải về](https://downloads.wordpress.org/plugin/dk-pdf.2.3.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/dk-pdf/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/dk-pdf/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/dk-pdf/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/dk-pdf/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/dk-pdf/)

## Mô tả

**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)

### 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.

## Ảnh màn hình

[⌊Hiển thị nút download ngoài Front-end⌉⌊Hiển thị nút download ngoài Front-end⌉[

Hiển thị nút download ngoài Front-end

[⌊Thiết lập nút PDF⌉⌊Thiết lập nút PDF⌉[

Thiết lập nút PDF

[⌊Thiếp lập các cài đặt PDF⌉⌊Thiếp lập các cài đặt PDF⌉[

Thiếp lập các cài đặt PDF

[⌊Thiết lập phần Header và Footer file PDF⌉⌊Thiết lập phần Header và Footer file
PDF⌉[

Thiết lập phần Header và Footer file PDF

[⌊Tuỳ chỉnh CSS⌉⌊Tuỳ chỉnh CSS⌉[

Tuỳ chỉnh CSS

[⌊PDF Templates⌉⌊PDF Templates⌉[

PDF Templates

[⌊Single post PDF⌉⌊Single post PDF⌉[

Single post PDF

[⌊Category PDF⌉⌊Category PDF⌉[

Category PDF

[⌊WooCommerce Product PDF⌉⌊WooCommerce Product PDF⌉[

WooCommerce Product PDF

[⌊WooCommerce Shop PDF⌉⌊WooCommerce Shop PDF⌉[

WooCommerce Shop PDF

[⌊Tắt tính năng tải file PDF.⌉⌊Tắt tính năng tải file PDF.⌉[

Tắt tính năng tải file PDF.

[⌊Custom Fields support⌉⌊Custom Fields support⌉[

Custom Fields support

## Cài đặt

Cài đặt “DK PDF” có thể được thực hiện bằng cách tìm kiếm “DK PDF” trong “Plugin&
gt; Thêm mới” trong bảng điều khiển WordPress của bạn hoặc bằng cách thực hiện các
bước sau:

 1. Tải về plugin từ WordPress.org
 2. Tải lên tập tin cài đặt của plugin này bằng cách ‘Plugin > Thêm mới > Tải lên từ
    trang quản trị plugin.
 3. Kích hoạt plugin trong menu ‘Plugin’ WordPress

## Đánh giá

![](https://secure.gravatar.com/avatar/3648415b0d3f74f0313c5ca02c8e1ef410af275636fc3a6f7c72dfdfdecf50be?
s=60&d=retro&r=g)

### 󠀁[Support takes entirely too long to respond if at all](https://wordpress.org/support/topic/support-takes-entirely-too-long-to-respond/)󠁿

 [TGoedde](https://profiles.wordpress.org/tgoedde/) 14 Tháng 5, 2026

The converted page looks nothing like the website page. Seems all of the HTML style
coding is getting stripped and as you can see the little icons for the meta data
is massive with no way to eliminate or style them. This plugin has potential, but
very little customization or support.

![](https://secure.gravatar.com/avatar/57f994681397b666aadbdad1ab144ffef2ccbc3fe32f71a8bf23b8d2dfd03a0c?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-16897/)󠁿

 [Diego Bittencourt](https://profiles.wordpress.org/diegobittencourt/) 30 Tháng 
8, 2025

Great, but the PDF Button text change doesn’t work.

![](https://secure.gravatar.com/avatar/bd1554c21e9717730ebfea69529fdc3a5be13c277514c82be40ca44e88d8a290?
s=60&d=retro&r=g)

### 󠀁[Support PHP8, super helpful developer](https://wordpress.org/support/topic/support-php8-super-helpful-developer/)󠁿

 [hitmonng](https://profiles.wordpress.org/hitmonng/) 16 Tháng 12, 2024

Contrary to older reviews, the developer has updated the plugin to support PHP8.
I’ve tried nearly every PDF generator plugin out there, and most are either overly
complicated, have cluttered UIs, bombard you with paid upgrade ads, or are just 
awful to set up and use—especially for something that should be straightforward 
with the abundance of PDF libraries available. This plugin is the one—clean, no-
nonsense, developer-friendly (if you need to control the styling and output), and
most importantly, backed by a super helpful developer. If only more developers created
sensible, easy-to-use, and well-designed plugins like this one.

![](https://secure.gravatar.com/avatar/03f0f56ae4b6baa029fc39c7bfa04422439442f4fd8d3788ff1e3b8ea7a87f96?
s=60&d=retro&r=g)

### 󠀁[Just downgrade your php to 7.4 and it still works !](https://wordpress.org/support/topic/just-downgrade-your-php-to-7-4-and-it-still-works/)󠁿

 [Dave Meyer](https://profiles.wordpress.org/agencewebmeyer/) 22 Tháng 1, 2023

No longer maintained, not compatible with PHP 8 Like the title says, this plugin
is no longer maintained and it is not compatible with PHP 8. This is the error it
outputs using PHP 8.0: Array and string offset access syntax with curly braces is
no longer supported in /public_html/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/
Mpdf.php on line 2209 Please, pretty please, somebody fix this !!!

![](https://secure.gravatar.com/avatar/ff33e2e0d32943ee991ee2d76a246615af59ae4e041b55f622042d0e03945053?
s=60&d=retro&r=g)

### 󠀁[Awesome Plugin](https://wordpress.org/support/topic/created-seo-nightmare/)󠁿

 [Shizart](https://profiles.wordpress.org/shizart/) 10 Tháng 3, 2022

Awesome Plugin

![](https://secure.gravatar.com/avatar/54267c6ae418ef7975cee2ddc6c6e12266ab159dc716aa0f0a395e49b6835634?
s=60&d=retro&r=g)

### 󠀁[No longer maintained, not compatible with PHP 8](https://wordpress.org/support/topic/no-longer-maintained-not-compatible-with-php-8/)󠁿

 [djw0510](https://profiles.wordpress.org/djw0510/) 17 Tháng 2, 2022

Like the title says, this plugin is no longer maintained and it is not compatible
with PHP 8.

 [ Đọc tất cả 44 đánh giá ](https://wordpress.org/support/plugin/dk-pdf/reviews/)

## Người đóng góp & Lập trình viên

“DK PDF – WordPress PDF Generator” là mã nguồn mở. Những người sau đã đóng góp vào
plugin này.

Những người đóng góp

 *   [ Torsten Chmielewski Bulk ](https://profiles.wordpress.org/torstenbulk/)
 *   [ dinamiko ](https://profiles.wordpress.org/dinamiko/)

[Dịch “DK PDF – WordPress PDF Generator” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/dk-pdf)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/dk-pdf/), check out [SVN repository](https://plugins.svn.wordpress.org/dk-pdf/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/dk-pdf/)
qua [RSS](https://plugins.trac.wordpress.org/log/dk-pdf/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 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

 * Cập nhật thư viện mPDF lên phiên bản mới nhất.
 * Bộ lọc mới `dkpdf_mpdf_font_dir`, `dkpdf_mpdf_font_data`, `dkpdf_mpdf_temp_dir`.
   Cảm ơn [joostvanbockel](https://github.com/joostvanbockel).

#### 1.9.3

 * Hoàn nguyên về 1.9.1, đã xảy ra sự cố trong phiên bản 1.9.2

#### 1.9.2

 * PHP7: Gỡ bỏ một số cảnh báo, xem [vấn đề #38](https://github.com/Dinamiko/dk-pdf/issues/38),
   [vấn đề #48](https://github.com/Dinamiko/dk-pdf/issues/48).
 * HTTPS:Sửa lỗi hình ảnh không hoạt động sau khi chuyển sang https, xem [vấn đề #51](https://github.com/Dinamiko/dk-pdf/issues/51).

#### 1.9.1

 * Đã thêm PDF Protection trong Cài đặt thiết lập PDF
 * Shortcodes cho cột mới: [dkpdf-columns] and [dkpdf-columnbreak]
 * Bộ lọc mới: dkpdf_pdf_filename
 * Sửa lỗi các admin_enqueue_scripts được hiển thị trên tất cả các trang (cảm ơn
   đến Aristeides Stathopoulos @aristath)

#### 1.9

 * Đã thêm thuộc tính thẻ shortcode vào dkpdf-remove shortcode
 * Hỗ trợ biểu tượng FontAwesome
 * Đã thêm tiêu đề bài đăng dưới dạng tên tệp PDF khi được tải xuống từ trình duyệt

#### 1.8

 * Bộ lọc mới dkpdf_pdf_format
 * Bộ lọc mới dkpdf_header_title
 * Tùy chọn để xóa nút PDF mặc định khi thêm nút PDF theo cách thủ công (cảm ơn 
   đến Renato Alves)

#### 1.7

 * Bộ lọc mới (xem tài liệu hướng dẫn các bộ lọc )
 * Sửa lỗi các vấn đề #21 #23 #24 trên Github

#### 1.6

 * Đã thử nghiệm trên bản 4.4.2
 * Đã thêm tính tương thích của DK PDF Generator (css + shortcodes)

#### 1.5

 * Đã thêm CSS tùy chỉnh PDF trong cài đặt
 * Các trường cài đặt được xác nhận kiếm tra.

#### 1.4

 * Đã thêm shortcode [dkpdf-pagebreak] để thêm ngắt trang
 * Đã thêm bộ lọc dkpdf_header_pagination và dkpdf_footer_pagination
 * Đã thêm trang tiện ích vào menu quản trị

#### 1.3

 * Menu quản trị PDF DK mới để có khả năng sử dụng tốt hơn
 * Đã thêm tab Thiết lập PDF để điều chỉnh hướng trang, kích thước phông chữ và 
   lề của PDF
 * Đã thêm shortcode [dkpdf-remove] để xóa các phần nội dung trong PDF được tạo

#### 1.2

 * Liên kết cài đặt trong trang danh sách plugin
 * Điều chỉnh mẫu tiêu đề để hiển thị biểu tượng tốt hơn

#### 1.1

 * Loại bỏ shortcode dkpdf-nút trong tệp PDF được tạo

#### 1.0

 * Phát hành lần đầu

## Meta

 *  Phiên bản **2.3.1**
 *  Cập nhật lần cuối **6 tháng trước**
 *  Số lượt cài đặt **3.000+**
 *  Phiên bản WordPress ** 3.9 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.5**
 *  Phiên bản PHP ** 8.0 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/dk-pdf/)
 * Thẻ
 * [pdf](https://vi.wordpress.org/plugins/tags/pdf/)[pdf generator](https://vi.wordpress.org/plugins/tags/pdf-generator/)
   [post to pdf](https://vi.wordpress.org/plugins/tags/post-to-pdf/)[Woocommerce PDF](https://vi.wordpress.org/plugins/tags/woocommerce-pdf/)
   [wordpress pdf generator](https://vi.wordpress.org/plugins/tags/wordpress-pdf-generator/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/dk-pdf/advanced/)

## Đánh giá

 4.5 trên 5 sao.

 *  [  36 5-star reviews     ](https://wordpress.org/support/plugin/dk-pdf/reviews/?filter=5)
 *  [  3 4-star reviews     ](https://wordpress.org/support/plugin/dk-pdf/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/dk-pdf/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/dk-pdf/reviews/?filter=2)
 *  [  4 1-star reviews     ](https://wordpress.org/support/plugin/dk-pdf/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dk-pdf/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/dk-pdf/reviews/)

## Những người đóng góp

 *   [ Torsten Chmielewski Bulk ](https://profiles.wordpress.org/torstenbulk/)
 *   [ dinamiko ](https://profiles.wordpress.org/dinamiko/)

## Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

     0 trên 1

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/dk-pdf/)