mPDF Manual – mPDF Variables

allow_output_buffering

(mPDF >= 3.0)

Description

boolean allow_output_buffering

When TRUE, mPDF will ignore any content in the object buffer - ob_get_contents() - when outputting the PDF file. By default, any buffered output will be treated as an error message and will abort the PDF file output and display any errors to the browser.

Values

$allow_output_buffering = FALSE TRUE

Values

FALSE: DEFAULT Any buffered output from the script will trigger an error message and abort production of the PDF file.

TRUE: Ignores any content in the object buffer when outputting the PDF file.

See Also