mPDF Manual – mPDF functions

StartProgressBarOutput()

(mPDF >= 4.2 && < 7.0)

StartProgressBarOutput – Enable progress bars to be shown during file generation

Description

void StartProgressBarOutput ( [ string <span class="parameter">$mode</span> ] )

Enable progress bars to be shown during file generation. Not recommended for general use, but may be helpful for development purposes, or for slow document generation. To set this value globally you can edit the value for progressBar in the configuration file config.php

Parameters

$mode

Values (case-insensitive)

1 or BLANK or omitted: Shows 1 progress bar (simple form) = DEFAULT

2: Shows multiple progress bars for detailed examination of progress

Examples

Example #1

<?php

define('_MPDF_URI','../');     // must be  a relative or absolute URI - not a file system path

$mpdf = new mPDF();

$mpdf->StartProgressBarOutput(2);

$mpdf->WriteHTML('You will hardly have time to see the progress bars!');

$mpdf->Output();

Changelog

VersionDescription
4.2Variable was added.
7.0Variable was removed along with progressbar capabilities.

See Also