Jump to content

Recommended Posts

Posted

Hi everyone,

I'd like to share a module I've been working on: WirePDF — a PDF generation module with full UTF-8 and Cyrillic support.

What it does

Adds a toPdf() hook to any page, so generating a PDF is as simple as:

$page->toPdf(['filename' => 'document.pdf']);

You can also pass custom HTML, use a dedicated template file, or save the PDF directly to disk.

Key features

  • Two engines: mPDF (recommended) and Dompdf
  • Full field support: all native PW fields + ProFields (Table, Repeater, RepeaterMatrix, Combo)
  • Typography: 14 fonts including DejaVu Sans for multilingual/Cyrillic content
  • Headers & footers with {PAGENO}, {nbpg}, {DATE}, {sitename} variables
  • Watermarks, password protection, configurable margins and paper sizes
  • Logging via ProcessWire's built-in log system (Setup > Logs > wirepdf)

Installation

cd /site/modules
git clone https://github.com/mxmsmnv/WirePDF.git
cd WirePDF
composer install

Then install via Modules > Refresh in the admin.


GitHub: https://github.com/mxmsmnv/WirePDF

Feedback and bug reports welcome!

  • Like 3
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...