WP Manifestindependent plugin directory
manifest / ecommerce / dompdf-wordpress

Dompdf WordPress Integration

WordPress plugin that generates branded product spec sheets and quote PDFs with DOMpdf.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/muhammad-afaque/dompdf-wordpress/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that generates PDF documents using the DomPDF library.

Features

  • Convert WordPress content to PDF
  • Generate PDFs from custom post types
  • Product specifications PDF generation
  • WooCommerce integration
  • Download/Print buttons integration

Requirements

  • WordPress 5.0+
  • PHP 7.4+
  • DomPDF library
  • PHP extensions: dom, gd, mbstring

Installation

  1. Upload dompdf-wordpress to /wp-content/plugins/
  2. Activate plugin through WordPress admin
  3. Configure settings under Settings > PDF Options

Usage

Basic Implementation

// Generate PDF
do_action('generate_product_pdf', $post_id);

// Add download button
echo do_shortcode('[pdf_download id="123"]');

Available Functions

// Check if post has PDF
has_product_pdf($post_id);

// Get PDF URL
get_pdf_download_url($post_id);

Hooks & Filters

// Modify PDF content
add_filter('dompdf_content', 'your_function');

// Change PDF filename
add_filter('dompdf_filename', 'your_function');

Known Limitations

  • Maximum execution time depends on server settings
  • Memory usage varies with content size
  • Some CSS3 features not supported by DomPDF

Support

For technical support and bug reports, please contact plugin developer.

License

GPL v2 or later


Note: Configure PHP memory_limit and max_execution_time based on your PDF generation needs.