mPDF Manual – What Else Can I Do

Importing files & Templates

(mPDF ≥ 2.3)

Using an extension of mPDF, pages from external PDF files can be imported into ‘templates’ and used throughout the current document. This can be used for:

  • page templates e.g. statements or invoices
  • letterheads (see also Headers & Footers)
  • a whole document template
  • create thumbnails as handouts etc. from a document you have produced

See

Since v8.0

  • setSourceFile() - Specify the source PDF file used to import pages into the document
  • importPage() - Import a page from an external PDF file
  • useTemplate() - Insert an imported page from an external PDF file

Until v8.0

  • SetImportUse() - Enable the use of imported PDF files or templates
  • SetSourceFile() - Specify the source PDF file used to import pages into the document
  • ImportPage() - Import a page from an external PDF file
  • UseTemplate() - Insert an imported page from an external PDF file

Common

Fork me on GitHub