mPDF Manual – mPDF functions

SetImportUse()

(mPDF >= 4.3)

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

VersionDescription
4.3 Function added.

Examples

Example #1

<?php

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

$mpdf = new mPDF();

$mpdf->SetImportUse();

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

$mpdf->Output();

?>

See Also