2022-02-24 09:37:43 +01:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
2022-03-17 11:19:26 +01:00
|
|
|
<title>pdf_show_boxed</title>
|
2022-02-24 09:37:43 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
2022-03-17 11:19:26 +01:00
|
|
|
<meta name="description" content="Schreibt einen Text in eine Box">
|
|
|
|
<meta name="keywords" content="SELFPHP, PHP, PDF-Funktionen, pdf_show_boxed">
|
2022-02-24 09:37:43 +01:00
|
|
|
<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">
|
2022-03-17 11:19:26 +01:00
|
|
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/pdf_funktionen/pdf_show_boxed.html">
|
2022-02-24 09:37:43 +01:00
|
|
|
<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%">
|
2022-03-17 11:19:26 +01:00
|
|
|
<h2>pdf_show_boxed</h2>
|
2022-02-24 09:37:43 +01:00
|
|
|
<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">
|
2022-03-17 11:19:26 +01:00
|
|
|
<p>void <b>pdf_show_boxed</b>(int PDF-Dokument, string text, double x-Koor,
|
|
|
|
double y-Koor, double Breite, double Höhe, string Modus [, string
|
|
|
|
Feature])</p>
|
2022-02-24 09:37:43 +01:00
|
|
|
</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">
|
2022-03-17 11:19:26 +01:00
|
|
|
<p>PHP 4 >= 4.0RC1</p>
|
2022-02-24 09:37:43 +01:00
|
|
|
</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>
|
|
|
|
|
2022-03-17 11:19:26 +01:00
|
|
|
<table width="100%" cellpadding=10 height="105">
|
2022-02-24 09:37:43 +01:00
|
|
|
<tr>
|
|
|
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
2022-03-17 11:19:26 +01:00
|
|
|
<p>Mit pdf_show_boxed() schreibt man einen Text (text) in die aktuelle Seite
|
|
|
|
eines<br>
|
|
|
|
PDF-Dokuments (PDF-Dokument). Der Text wird in einem (unsichtbaren)<br>
|
|
|
|
Rahmen platziert und bei Bedarf umbrochen. Dabei wird der Rahmen durch
|
|
|
|
die<br>
|
|
|
|
Koordinaten der linken unteren Ecke (xKoor, yKoor), die Breite (Breite)
|
|
|
|
und die<br>
|
|
|
|
Höhe (Höhe) definiert. <br>
|
|
|
|
Die Textausrichtung (Modus) kann folgende Werte annehmen:<br>
|
|
|
|
Höhe und Breite des Rahmens ist Null:<br>
|
|
|
|
left<br>
|
|
|
|
center<br>
|
|
|
|
right<br>
|
|
|
|
Höhe und Breite des Rahmens ist ungleich Null:<br>
|
|
|
|
justify<br>
|
|
|
|
fulljustify<br>
|
|
|
|
Wird der optionale Parameter Feature auf "blind" gesetzt, so
|
|
|
|
wird der Text nicht<br>
|
|
|
|
ausgegeben! Sollte der auszugebende Text nicht in den Rahmen passen, erhält<br>
|
|
|
|
man als Rückgabewert der Funktion die Anzahl der Zeichen, welche<br>
|
|
|
|
abgeschnitten wurden.</p>
|
|
|
|
<p>Beispiel:</p>
|
|
|
|
<pre>$menge = pdf_show_boxed($dokument,"PHP3/4 - Die Befehlsreferenz PHP3/4 - Die Befehlsreferenz ",20,20,100,50,"center");
|
|
|
|
echo $menge;</pre>
|
|
|
|
<p>"$menge" würde in diesem Fall 44 sein</p>
|
2022-02-24 09:37:43 +01:00
|
|
|
<p>Siehe auch:</p>
|
|
|
|
<ul>
|
2022-03-17 11:19:26 +01:00
|
|
|
<li><a href="pdf_show.html">pdf_show()</a></li>
|
|
|
|
<li><a href="pdf_show_xy.html">pdf_show_xy()</a></li>
|
2022-02-24 09:37:43 +01:00
|
|
|
</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">
|
2022-03-17 11:19:26 +01:00
|
|
|
<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", 14, "winansi"); <br>pdf_show_boxed($dokument,"PHP3/4 - Die Befehlsreferenz",20,20,100,50,"center"); <br>pdf_end_page($dokument);<br>$dokument = pdf_close($dokument); <br>fclose($file); <br>?></pre>
|
2022-02-24 09:37:43 +01:00
|
|
|
<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">
|
2022-03-17 11:19:26 +01:00
|
|
|
<p><img src="../funktionsgrafiken/pdf_show_boxed.gif" width="385" height="218"></p>
|
2022-02-24 09:37:43 +01:00
|
|
|
<p><b>Achtung:</b> Bei der Ausgabe des Befehls wird im Browser nichts<br>
|
2022-03-17 11:19:26 +01:00
|
|
|
zurückgegeben, es sei denn, dass der Text nicht in die Box passt<br>
|
|
|
|
und man sich dieses ausgeben läßt. Die obenstehende Grafik<br>
|
|
|
|
wurde im Acrobat-Reader geöffnet um die Wirkungsweise des<br>
|
|
|
|
Befehls zu zeigen.</p>
|
2022-02-24 09:37:43 +01:00
|
|
|
</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>
|
2022-03-17 11:19:26 +01:00
|
|
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="pdf_show_xy.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
2022-02-24 09:37:43 +01:00
|
|
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
2022-03-17 11:19:26 +01:00
|
|
|
<a href="pdf_show_xy.html"><b>pdf_show_xy</b></a> </td>
|
2022-02-24 09:37:43 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-03-17 11:19:26 +01:00
|
|
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="pdf_show.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
2022-02-24 09:37:43 +01:00
|
|
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
2022-03-17 11:19:26 +01:00
|
|
|
<a href="pdf_show.html"><b>pdf_show</b></a> </td>
|
2022-02-24 09:37:43 +01:00
|
|
|
</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>
|