source: trunk/client/inc/hpdf/_fpdf/doc/output.htm@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 1.6 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5<title>Output</title>
6<link type="text/css" rel="stylesheet" href="../fpdf.css">
7</head>
8<body>
9<h1>Output</h1>
10<code><b>string</b> Output([<b>string</b> name, <b>string</b> dest])</code>
11<h2>Description</h2>
12Send the document to a given destination: browser, file or string. In the case of browser, the
13plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
14<br>
15The method first calls Close() if necessary to terminate the document.
16<h2>Parameters</h2>
17<dl class="param">
18<dt><code>name</code></dt>
19<dd>
20The name of the file. If not specified, the document will be sent to the browser
21(destination <code>I</code>) with the name <code>doc.pdf</code>.
22</dd>
23<dt><code>dest</code></dt>
24<dd>
25Destination where to send the document. It can take one of the following values:
26<ul>
27<li><code>I</code>: send the file inline to the browser. The plug-in is used if available.
28The name given by <code>name</code> is used when one selects the "Save as" option on the
29link generating the PDF.</li>
30<li><code>D</code>: send to the browser and force a file download with the name given by
31<code>name</code>.</li>
32<li><code>F</code>: save to a local file with the name given by <code>name</code> (may include a path).</li>
33<li><code>S</code>: return the document as a string. <code>name</code> is ignored.</li>
34</ul>
35</dd>
36</dl>
37<h2>See also</h2>
38<a href="close.htm">Close()</a>.
39<hr style="margin-top:1.5em">
40<div style="text-align:center"><a href="index.htm">Index</a></div>
41</body>
42</html>
Note: See TracBrowser for help on using the repository browser.