mPDF Manual – mPDF functions

SetImportUse()

(mPDF ≥ 4.3 && < 8.0)

SetImportUse – Enable the use of imported PDF files or templates

Description

void SetImportUse ( )

Enable the use of imported PDF files or templates. This causes additional files (classes) to be loaded, enabling several functions allowing you to import PDF files into the document you are writing, and using templates.

Changelog

Version Description
4.3 Function added.
8.0 Function removed.

Examples

<?php

// Require composer autoload
require_once __DIR__ . '/vendor/autoload.php';

$mpdf = new \Mpdf\Mpdf();

$mpdf->SetImportUse(); // only with mPDF <8.0

$mpdf->WriteHTML('You can use this just like normal, but also import and use templates...');
$mpdf->Output();

See Also

Fork me on GitHub