maximus Posted February 27 Posted February 27 Hi everyone, PagePdf is a ProcessWire module for generating PDF documents from pages using mPDF or Dompdf. Formerly this module was published as WirePDF. It has been renamed to PagePdf starting with version 3.0.0 to avoid confusion with the legacy WirePDF class bundled inside Pages2Pdf and to prevent accidental upgrade collisions. What it does Adds PDF generation methods to ProcessWire pages: $page->toPdf(['filename' => 'document.pdf']); You can also render PDF output as a string, save PDFs to disk, pass custom HTML, or render through a dedicated template file. Key features mPDF by default, Dompdf optional UTF-8 and Cyrillic support Configurable paper size, orientation, margins, font, and image DPI Headers and footers with {PAGENO}, {nbpg}, {DATE}, {sitename} Watermarks and PDF password protection Support for common ProcessWire fields and ProFields Setup wizard: Setup -> PagePdf Wizard Installation cd /site/modules git clone https://github.com/mxmsmnv/PagePdf.git PagePdf cd PagePdf composer install Then install PagePdf via Modules -> Refresh in the ProcessWire admin. Important note for Pages2Pdf users Do not install PagePdf as an in-place update for Pages2Pdf. It is a separate module. If you are using Pages2Pdf, install PagePdf separately, test PDF generation, and migrate templates/configuration deliberately. GitHub: https://github.com/mxmsmnv/PagePdf Feedback and bug reports are welcome. 9 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now