[903] | 1 | <HTML>
|
---|
| 2 | <HEAD>
|
---|
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
---|
| 4 | <TITLE>Output</TITLE>
|
---|
| 5 | <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
|
---|
| 6 | </HEAD>
|
---|
| 7 | <BODY>
|
---|
| 8 | <H2>Output</H2>
|
---|
| 9 | <TT><B>string</B> Output([<B>string</B> name [, <B>string</B> dest]])</TT>
|
---|
| 10 | <H4 CLASS='st'>Version</H4>
|
---|
| 11 | 1.0
|
---|
| 12 | <H4 CLASS='st'>Description</H4>
|
---|
| 13 | Send the document to a given destination: string, local file or browser. In the last case, the
|
---|
| 14 | plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
|
---|
| 15 | <BR>
|
---|
| 16 | The method first calls Close() if necessary to terminate the document.
|
---|
| 17 | <H4 CLASS='st'>Parameters</H4>
|
---|
| 18 | <TT><U>name</U></TT>
|
---|
| 19 | <BLOCKQUOTE>
|
---|
| 20 | The name of the file. If not given, the document will be sent to the browser
|
---|
| 21 | (destination <TT>I</TT>) with the name <TT>doc.pdf</TT>.
|
---|
| 22 | </BLOCKQUOTE>
|
---|
| 23 | <TT><U>dest</U></TT>
|
---|
| 24 | <BLOCKQUOTE>
|
---|
| 25 | Destination where to send the document. It can take one of the following values:
|
---|
| 26 | <UL>
|
---|
| 27 | <LI><TT>I</TT>: send the file inline to the browser. The plug-in is used if available.
|
---|
| 28 | The name given by <TT>name</TT> is used when one selects the "Save as" option on the
|
---|
| 29 | link generating the PDF.
|
---|
| 30 | <LI><TT>D</TT>: send to the browser and force a file download with the name given by
|
---|
| 31 | <TT>name</TT>.
|
---|
| 32 | <LI><TT>F</TT>: save to a local file with the name given by <TT>name</TT>.
|
---|
| 33 | <LI><TT>S</TT>: return the document as a string. <TT>name</TT> is ignored.
|
---|
| 34 | </UL>
|
---|
| 35 | If the parameter is not specified but a name is given, destination is <TT>F</TT>. If no
|
---|
| 36 | parameter is specified at all, destination is <TT>I</TT>.<BR>
|
---|
| 37 | <BR>
|
---|
| 38 | Note: for compatibility with previous versions, a boolean value is also accepted
|
---|
| 39 | (<TT>false</TT> for <TT>F</TT> and <TT>true</TT> for <TT>D</TT>).
|
---|
| 40 | </BLOCKQUOTE>
|
---|
| 41 | <H4 CLASS='st'>See also</H4>
|
---|
| 42 | <A HREF="close.htm">Close()</A>.
|
---|
| 43 | <H6></H6>
|
---|
| 44 | <HR>
|
---|
| 45 | <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
|
---|
| 46 | </BODY>
|
---|
| 47 | </HTML>
|
---|