mPDF Writer

The mPDF Writer allows Commerce to generate PDFs using the mPDF library (GPL 2.0). This runs on your own server (compared to the PDFCrowd Writer, which off-loads PDF generation to a paid service) and is free to use.

For Commerce PDF generation is particularly useful for generating PDF invoices.

Note: this module requires Commerce 1.0 or up.

Usage

  1. Download and install the package from our package provider.
  2. In the Commerce Dashboard, navigate to Configuration > Modules. Find the mPDF Writer module, and enable it.
  3. Once enabled and properly configured, Commerce will automatically use mPDF to generate invoices or other PDFs.

Release History

mPDF Writer for Commerce 1.1.4-pl

Released on 2022-10-03

Released on 2022-10-04

Dependency updates:

  • psr/http-message installed in version 1.0.1
  • php-http/message-factory installed in version v1.0.2
  • myclabs/deep-copy updated from 1.10.2 to 1.11.0
  • mpdf/mpdf updated from v8.0.12 to v8.1.2

mPDF Writer for Commerce 1.1.3-pl

Released on 2021-07-26

Released on 2021-07-26

  • Update mpdf from v8.0.11 to v8.0.12: https://github.com/mpdf/mpdf/compare/v8.0.11...v8.0.12

mPDF Writer for Commerce 1.1.2-pl

Released on 2021-05-13

Released on 2021-05-13

  • Change gitignore strategy to allow vendor folder to be committed on installed sites
  • Updated dependencies:
  • mpdf/mpdf updated from v8.0.5 to v8.0.11
  • setasign/fpdi updated from v2.3.2 to v2.3.6
  • psr/log updated from 1.1.3 to 1.1.4
  • paragonie/random_compat updated from v9.99.99 to v9.99.100
  • myclabs/deep-copy updated from 1.9.5 to 1.10.2

mPDF Writer for Commerce 1.1.1-pl

Released on 2020-03-24

Released on 2020-03-24

  • Provide mPDF with a consistent base path (root of the MODX installation) to ensure relative image urls resolve consistently [S22301]
  • Relax minimum PHP version requirement to 7.1+

Dependencies:

  • myclabs/deep-copy updated from 1.9.1 to 1.9.5
  • setasign/fpdi updated from v2.2.0 to v2.3.2
  • psr/log updated from 1.1.0 to 1.1.3
  • mpdf/mpdf updated from v8.0.2 to v8.0.5 [security fix]

mPDF Writer for Commerce 1.1.0-pl

Released on 2019-08-12

Released on 12 August, 2019

  • Remove unused mPDF fonts during package build to greatly reduce package size. To add new fonts, see: https://docs.modmore.com/en/Commerce/v1/Modules/mPDFWriter.html

mPDF Writer for Commerce 1.0.1-pl

Released on 2019-07-28

Released on 28 July, 2019

  • Fix module not being recognised after installation

mPDF Writer for Commerce 1.0.0-pl

Released on 2019-07-25

Released on 25 July, 2019

  • First release of the mPDF Writer for Commerce. Developed by Murray Wood for modmore.