Location: PHPKode > scripts > PHP DataGrid > modules/fpdf/doc/output.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
<TT><B>string</B> Output([<B>string</B> name [, <B>string</B> dest]])</TT>
<H4 CLASS='st'>Version</H4>
<H4 CLASS='st'>Description</H4>
Send the document to a given destination: string, local file or browser. 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.
<H4 CLASS='st'>Parameters</H4>
The name of the file. If not given, the document will be sent to the browser
(destination <TT>I</TT>) with the name <TT>doc.pdf</TT>.
Destination where to send the document. It can take one of the following values:
<LI><TT>I</TT>: send the file inline to the browser. The plug-in is used if available.
The name given by <TT>name</TT> is used when one selects the "Save as" option on the
link generating the PDF.
<LI><TT>D</TT>: send to the browser and force a file download with the name given by
<LI><TT>F</TT>: save to a local file with the name given by <TT>name</TT>.
<LI><TT>S</TT>: return the document as a string. <TT>name</TT> is ignored.
If the parameter is not specified but a name is given, destination is <TT>F</TT>. If no
parameter is specified at all, destination is <TT>I</TT>.<BR>
Note: for compatibility with previous versions, a boolean value is also accepted
(<TT>false</TT> for <TT>F</TT> and <TT>true</TT> for <TT>D</TT>).
<H4 CLASS='st'>See also</H4>
<A HREF="close.htm">Close()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
Return current item: PHP DataGrid