TCPDF::Output( $name = 'doc.pdf',  $dest = 'I' )

Send the document to a given destination: string, local file or browser.


Description Description

In the last case, the plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
The method first calls Close() if necessary to terminate the document.

See also See also


Top ↑

Parameters Parameters

$name

(Optional) (string) The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character.

Default value: 'doc.pdf'

$dest

(Optional) (string) Destination where to send the document. It can take one of the following values:<ul><li>I: send the file inline to the browser (default). The plug-in is used if available. The name given by name is used when one selects the "Save as" option on the link generating the PDF.</li><li>D: send to the browser and force a file download with the name given by name.</li><li>F: save to a local server file with the name given by name.</li><li>S: return the document as a string (name is ignored).</li><li>FI: equivalent to F + I option</li><li>FD: equivalent to F + D option</li><li>E: return the document as base64 mime multi-part email attachment (RFC 2045)</li></ul>

Default value: 'I'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.