mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-10-20 02:05:05 +02:00
177 lines
9.5 KiB
HTML
177 lines
9.5 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>pdf_save</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||
|
<meta name="description" content="Sichert die aktuelle Umgebung">
|
||
|
<meta name="keywords" content="SELFPHP, PHP, PDF-Funktionen, pdf_save">
|
||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||
|
<meta name="DC.Date" content="2001-08-21T12:18+01:00">
|
||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/pdf_funktionen/pdf_save.html">
|
||
|
<meta name="DC.Language" content="de">
|
||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||
|
<meta name="SELF.Firstdate" content="2001-08-21T12:18+01:00">
|
||
|
<meta name="SELF.Version" content="1">
|
||
|
<meta name="SELF.Pagetype" content="Information">
|
||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // PDF-Funktionen == index.html">
|
||
|
</head>
|
||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>PDF-Funktionen</b></a></td>
|
||
|
</tr>
|
||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||
|
<h2>pdf_save</h2>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center">
|
||
|
<img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||
|
</td>
|
||
|
<td bgcolor="#FFFFFF" valign="top" nowrap>
|
||
|
<p>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||
|
</p>
|
||
|
</td>
|
||
|
</tr><tr><td colspan=2 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td></tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||
|
|
||
|
|
||
|
|
||
|
<table width="100%" cellpadding=10>
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||
|
<p>void <b>pdf_save</b>(int PDF-Dokument)</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="32">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||
|
<p>PHP 3>= 3.0.6, PHP 4</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="135">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||
|
<p>Mit pdf_save() kann man den aktuellen Zustand des Dokuments (PDF-<br>
|
||
|
Dokument) sichern. Das ist oftmals sehr nützlich, wenn z.B.<br>
|
||
|
Koordinatenverschiebungen nur für bestimmte Objekte gelten sollen.
|
||
|
Sobald<br>
|
||
|
Sie die Koordinatenverschiebungen durchgeführt und die Objekte gezeichnet<br>
|
||
|
haben, können Sie mit der Funktion pdf_restore() die ursprüngliche
|
||
|
Umgebung<br>
|
||
|
wieder herstellen.<br>
|
||
|
Im unteren Beispiel wurde zuerst ein Text (1) in horizontaler Richtung<br>
|
||
|
geschrieben. Danach wurde die Funktion pdf_save() aufgerufen, um die letzten<br>
|
||
|
Einstellungen zu schützen. Anschließend wurden die Texte 2
|
||
|
und 3 mittels<br>
|
||
|
pdf_skew() im Koordinatensystem geschert. Um die ursprüngliche Umgebung<br>
|
||
|
wieder herzustellen, wurde die Funktion pdf_restore() benutzt. Abschließend<br>
|
||
|
wurde noch einmal ein Text (4) in horizontaler Richtung geschrieben.</p>
|
||
|
<p>Siehe auch:</p>
|
||
|
<ul>
|
||
|
<li><a href="pdf_restore.html">pdf_restore()</a></li>
|
||
|
<li><a href="pdf_skew.html">pdf_skew()</a></li>
|
||
|
</ul>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="66">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||
|
<pre><?PHP<br>$file = fopen("php.pdf", "w"); <br>$dokument = pdf_open($file); <br>pdf_begin_page($dokument,200, 100); <br>pdf_set_font($dokument, "Times-Roman", 24, "winansi");<br>pdf_setgray_fill($dokument, 0.7);<br>pdf_show_xy($dokument,"1.Ein kurzer Text",0,30);<br>pdf_save($dokument);<br>pdf_skew($dokument,20,10);<br>pdf_setgray_fill($dokument, 0);<br>pdf_show_xy($dokument,"2.Ein kurzer Text",0,30);<br>pdf_set_font($dokument, "Times-Roman", 18, "winansi");<br>pdf_setgray_fill($dokument, 0.5);<br>pdf_continue_text($dokument,"3.Ein kurzer Text");<br>pdf_restore($dokument);<br>pdf_show_xy($dokument,"4.Ein kurzer Text",30,5);<br>pdf_end_page($dokument); <br>pdf_close($dokument); <br>fclose($file); <br>?></pre>
|
||
|
<p></p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||
|
</td></tr></table>
|
||
|
|
||
|
|
||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||
|
|
||
|
<table width="100%" cellpadding=10 height="45">
|
||
|
<tr>
|
||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||
|
<p><img src="../funktionsgrafiken/pdf_save.gif" width="385" height="218"></p>
|
||
|
<p><b>Achtung:</b> Bei der Ausgabe des Befehls wird im Browser nichts<br>
|
||
|
zurückgegeben. Die obenstehende Grafik wurde im Acrobat-<br>
|
||
|
Reader geöffnet um die Wirkungsweise des Befehls zu zeigen.</p>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
|
||
|
|
||
|
<p> </p>
|
||
|
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||
|
</td></tr>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="pdf_scale.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||
|
<a href="pdf_scale.html"><b>pdf_scale</b></a> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="pdf_rotate.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||
|
<a href="pdf_rotate.html"><b>pdf_rotate</b></a> </td>
|
||
|
</tr>
|
||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||
|
<tr>
|
||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||
|
<a href="index.html"><b>PDF-Funktionen</b></a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|