Compare commits

...

33 Commits

Author SHA1 Message Date
e701570ee6 Neues Zuweisungsschreiben 2024-04-25 12:11:28 +02:00
0b966ac783 Schriftgröße Praxsisstellen verkleinert 2024-04-25 10:16:24 +02:00
d9a3475ef6 Schriftgröße Praxsisstellen verkleinert 2024-04-25 10:06:25 +02:00
fa4b57ca62 Schriftgröße Praxsisstellen verkleinert 2024-04-25 09:28:39 +02:00
288d1d2f3c Textänderung Umzugsvergütung 2024-04-24 16:15:08 +02:00
c8e82582d4 Textänderung Anschreiben Kehl 2024-04-24 13:18:46 +02:00
3db2a4fabd Anlage Praxisstelle Kehl 2024-04-24 12:48:07 +02:00
505e0b3a6e Seitenzahlen aus Anschreiben entfernt 2024-04-23 11:56:44 +02:00
9504f94044 Anpassungen Zuweisungsschreiben 2024-04-23 08:50:22 +02:00
842aeb3418 Fehlerkorrektur bei Zuweisung AE 2024-04-22 14:09:09 +02:00
4ec868fb68 Kompression PDF berichtigt 2024-04-22 13:40:21 +02:00
933115b579 Änderung Zuweisungsschreiben 2024-04-22 08:05:54 +02:00
14efdb10e1 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-23 09:10:25 +01:00
99192592b9 AG Standorte auskommentiert 2024-02-23 09:08:36 +01:00
b17383a644 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 15:10:45 +01:00
d5ec7b2be0 Prints aus Standort entfernt 2024-02-22 15:05:33 +01:00
f20a390f38 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 14:41:51 +01:00
3580da4ff7 Ausdruck neu 2024-02-22 14:41:32 +01:00
cec9d00f91 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 14:35:03 +01:00
bc42ea135b Ausdruck neu 2024-02-22 14:34:26 +01:00
1df6da1397 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 12:08:58 +01:00
0e8ed83811 Paragraph geändert 2024-02-22 12:07:38 +01:00
ec91e78b8b Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 10:59:08 +01:00
4187bc5ca5 UTF8 2024-02-22 10:58:53 +01:00
ccecef96b2 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 10:57:11 +01:00
6b9c050104 UTF8 2024-02-22 10:56:48 +01:00
6c4a3e0e78 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-22 10:51:26 +01:00
05cd38206d Anschrift Kehl geändert, Postfach raus 2024-02-22 10:50:14 +01:00
f9893b2158 Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu 2024-02-22 10:48:33 +01:00
8c65cbe1e4 Anschrift Kehl geändert, Postfach raus 2024-02-22 10:48:10 +01:00
8d7d8ec4fd Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main 2024-02-21 07:34:20 +01:00
899c9683ed Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main
Änderungsschreiben erstellt
2023-07-14 08:20:44 +02:00
964c6d22a9 Austausch Briefkopf_blanko 2023-07-06 10:10:07 +02:00
184 changed files with 4921 additions and 25596 deletions

Binary file not shown.

Binary file not shown.

View File

@ -581,10 +581,10 @@ $pdf->SetY($pos);
if($hinweis_umzug_alt == 1 or $hinweis_umzug_neu == 1){
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 4.8, "* Für diesen Praxisabschnitt wird eine Umzugsvergütung gewährt.", 0, 'J');
$pdf->MultiCell(175, 4.8, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Ludwigsburg liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}
$pos=$pdf->GetY()+6.4;

View File

@ -129,8 +129,9 @@ $pos=$pdf->GetY()+0.5;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(147.3);
$pdf->SetFont('Arial', 'B', 8);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+0.5;
@ -196,18 +197,18 @@ $pdf->MultiCell(165, 4.8, "Hier: Zuweisung $anwart_geschlecht $row_stud[vorname]
$pos=$pdf->GetY()+1.1;
$pdf->SetFont('Arial', 'U', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(150, 3, "Anlage", 0, 'L');
$pos=$pdf->GetY()+1.1;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(150, 3, "Weitere wichtige Informationen und Bestimmungen zum Zuweisungsbescheid im Praxisjahr", 0, 'L');
#$pdf->SetFont('Arial', 'U', 8);
#$pdf->SetY($pos);
#$pdf->SetX(24);
#$pdf->MultiCell(150, 3, "Anlage", 0, 'L');
#
#
#$pos=$pdf->GetY()+1.1;
#
#$pdf->SetFont('Arial', '', 8);
#$pdf->SetY($pos);
#$pdf->SetX(24);
#$pdf->MultiCell(150, 3, "Weitere wichtige Informationen und Bestimmungen zum Zuweisungsbescheid im Praxisjahr", 0, 'L');
######## Betreff Ende ############################
@ -299,7 +300,7 @@ $pos=$pdf->GetY()+4.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Die Hochschule Ludwigsburg weist Ihnen o. g. $anwaerter gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 des Gesetzes vom 10.Juli 2020) mit Ihrem Einverständnis im folgenden Zeitraum zu:", 0, 'J');
$pdf->MultiCell(175, 3.9, "Die Hochschule Ludwigsburg weist Ihnen o. g. $anwaerter gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 der Verordnung vom 19. September 2023) mit Ihrem Einverständnis im folgenden Zeitraum zu:", 0, 'J');
@ -449,7 +450,7 @@ $pdf->SetX(24);
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Das Formular für die abschließende Beurteilung, sowie weitere Hinweise zur Zuweisung und ausbildungsrelevante Regelungen in der praktischen Ausbildung finden Sie auf unserer Homepage unter:", 0, 'J');
$pdf->MultiCell(175, 3.9, "Das Formular für die abschließende Beurteilung finden Sie auf unserer Homepage unter:", 0, 'J');
$pos=$pdf->GetY()+3.5;
@ -458,12 +459,17 @@ $pdf->SetFont('Arial', 'U', 10);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(180, 3.9, "https://www.hs-ludwigsburg.de/studium-lehre/bachelor/public-management-bpm/studienabschnitte/praxisphase", 0, 'J');
$pdf->MultiCell(180, 3.9, "https://www.hs-ludwigsburg.de/praxisstellen/praktische-ausbildung-public-management-ba", 0, 'J');
$pdf->SetTextColor(0,0,0);
$pos=$pdf->GetY()+3.4;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Weitere Hinweise zur Zuweisung und ausbildungsrelevante Regelungen in der praktischen Ausbildung finden Sie im Anhang.", 0, 'J');
$pos=$pdf->GetY()+3.4;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
@ -498,15 +504,7 @@ $pos=$pdf->GetY()+8.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+8.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "gez.\ndas Zulassungsamt der Hochschule Ludwigsburg ", 0, 'J');
$pdf->MultiCell(175, 3.9, "Mit freundlichen Grüßen\ngez.\ndas Zulassungsamt der Hochschule Ludwigsburg ", 0, 'J');
#$pos=$pdf->GetY()+1.0;

View File

@ -107,8 +107,9 @@ $pos=$pdf->GetY()+0.5;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(147.3);
$pdf->SetFont('Arial', 'B', 8);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+0.5;
@ -172,7 +173,7 @@ $pdf->SetX(24);
$pdf->MultiCell(150, 3, "Hier: Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung", 0, 'L');
$pos=$pdf->GetY()+1.1;
$pos=$pdf->GetY()+8.0;
$pdf->SetFont('Arial', 'U', 8);
$pdf->SetY($pos);
@ -227,7 +228,7 @@ $pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "wir weisen Sie gem. § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 des Gesetzes vom 10. Juli 2020) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'L');
$pdf->MultiCell(175, 3.9, "wir weisen Sie gem. § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 der Verordnung vom 19. September 2023) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'L');
@ -459,10 +460,10 @@ if(!isset($hist) or !isset($hist2)){
if($hinweis_umzug == 1){
$pos=$pdf->GetY()+3;
$pdf->SetFont('Arial', '', 11);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "* Für diesen Praxisabschnitt wird eine Umzugsvergütung gewährt.", 0, 'J');
$pdf->MultiCell(175, 3.9, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Ludwigsburg liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}
$pos=$pdf->GetY()+3.0;
@ -478,26 +479,8 @@ $pos=$pdf->GetY()+3.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Zusätzliche Informationen zum Zuweisungsbescheid und zur praktischen Ausbildung finden Sie auf unserer Homepage unter:", 0, 'L');
$pos=$pdf->GetY()+3.0;
$pdf->SetFont('Arial', 'U', 9);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "https://www.hs-ludwigsburg.de/studium-lehre/bachelor/public-management-bpm/studienabschnitte/praxisphase", 0, 'L');
$pdf->SetTextColor(0,0,0);
$pos=$pdf->GetY()+3.0;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Dort finden Sie u. a. auch das Beurteilungsformular und die Anforderungen an den Praktikumsbericht.", 0, 'L');
$pdf->MultiCell(175, 3.9, "Zusätzliche Informationen zum Zuweisungsbescheid und zur praktischen Ausbildung finden Sie im Anhang.", 0, 'L');
$pos=$pdf->GetY()+3.0;
@ -521,7 +504,7 @@ $pos=$pdf->GetY()+9.8;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "Das Zulassungsamt der Hochschule Ludwigsburg", 0, 'L');
$pdf->MultiCell(175, 3.9, "gez.\nDas Zulassungsamt der Hochschule Ludwigsburg", 0, 'L');
$pagecount = $pdf->setSourceFile("anschreiben/anlage_erstantrag_student_2023.pdf");
$tplidx1 = $pdf->ImportPage(1);
@ -552,4 +535,4 @@ $pdf->useTemplate($tplidx1,0,0,0);
#$pdf->addPage();
#$pdf->useTemplate($tplidx1,0,0,0);
?>
?>

Binary file not shown.

View File

@ -603,7 +603,7 @@ $pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pdf->MultiCell(168, 4.8, "Freundliche Grüße", 0, 'J');
$pos=$pdf->GetY()+9.1;
@ -611,7 +611,7 @@ $pos=$pdf->GetY()+9.1;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 4.8, "Corinne Feger", 0, 'J');
$pdf->MultiCell(168, 4.8, "gez. Corinne Feger\nStellv. Leitung Servicezentrum Studium & Lehre", 0, 'J');
$pos=$pdf->GetY()+5.0;

View File

@ -157,7 +157,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(103.5);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Änderung der Zuweisung für die praktische Ausbildung;", 0, 'L');
$pdf->MultiCell(150, 3, "Änderung der Zuweisung für die praktische Ausbildung", 0, 'L');
######## Betreff Ende ############################
@ -612,10 +612,10 @@ $pdf->SetY($pos);
if($hinweis_umzug_alt == 1 or $hinweis_umzug_neu == 1){
$pos=$pdf->GetY()+4.4;
$pdf->SetFont('Arial', '', 10);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(170, 4.8, "* Für diesen Praxisabschnitt wird eine Umzugsvergütung gewährt.", 0, 'J');
$pdf->MultiCell(170, 4.8, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Kehl liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}
@ -632,7 +632,7 @@ $pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(170, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pdf->MultiCell(170, 4.8, "Freundliche Grüße", 0, 'J');
$pos=$pdf->GetY()+14.8;
@ -640,7 +640,7 @@ $pos=$pdf->GetY()+14.8;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(170, 4.8, "Corinne Feger", 0, 'J');
$pdf->MultiCell(170, 4.8, "gez. Corinne Feger\nStellv. Leitung Servicezentrum Studium & Lehre", 0, 'J');
$pos=$pdf->GetY()+5.0;

View File

@ -142,8 +142,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
$pdf->SetFont('Times', '', 9);
$pdf->SetY(44.4);
$pdf->SetX(22.3);
$pdf->MultiCell(80, 3, "Hochschule Kehl - Postfach 1549 - 77675 Kehl", 0, 'L');
$pdf->MultiCell(80, 3, "Hochschule Kehl - Kinzigallee 1 - 77694 Kehl", 0, 'L');
########Kontaktdaten HS Ende #####################

View File

@ -252,7 +252,7 @@ $pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(180, 3.9, "Die Hochschule Kehl weist Ihnen o. g. $anwaerter gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 des Gesetzes vom 10. Juli 2020) mit Ihrem Einverständnis im folgenden Zeitraum zu:", 0, 'L');
$pdf->MultiCell(180, 3.9, "Die Hochschule Kehl weist Ihnen o. g. $anwaerter gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 der Verordnung vom 19. September 2023) mit Ihrem Einverständnis im folgenden Zeitraum zu:", 0, 'L');
@ -393,7 +393,7 @@ $pos=$pdf->GetY()+3.8;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(180, 3.9, "Das Formular für die abschließende Beurteilung sowie weitere Hinweise zur Zuweisung und ausbildungsrelevante Regelungen in der praktischen Ausbildung für die Praxisstellen finden Sie auf unserer Website unter: Studium & Lehre - Bachelor-Studiengänge - Public Management (B.A.) - Informationen für Ausbildungsstellen (bitte unbedingt beachten). Wichtige Hinweise erhalten Sie darüber hinaus auch im Anhang.", 0, 'L');
$pdf->MultiCell(180, 3.9, "Das Formular für die abschließende Beurteilung sowie weitere Hinweise zur Zuweisung und ausbildungsrelevante Regelungen in der praktischen Ausbildung für die Praxisstellen finden Sie auf unserer Website unter: Studium - Bachelorstudiengänge Public Management (BPM) - Informationen für Praxisstellen (bitte unbedingt beachten). Wichtige Hinweise erhalten Sie darüber hinaus auch im Anhang.", 0, 'L');
$pos=$pdf->GetY()+3.8;
$pdf->SetFont('Arial', '', 10);
@ -431,14 +431,14 @@ $pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 3.9, "gez. Corinne Feger\nStellvertretende Leiterin Servicezentrum Studium & Lehre", 0, 'L');
$pdf->MultiCell(168, 3.9, "gez. Corinne Feger\nStellv. Leitung Servicezentrum Studium & Lehre", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(280);
$pdf->SetX(24);
$pdf->MultiCell(173, 3.9, "Seite 1 von 3", 0, 'R');
#$pdf->SetFont('Arial', '', 8);
#$pdf->SetY(280);
#$pdf->SetX(24);
#$pdf->MultiCell(173, 3.9, "Seite 1 von 3", 0, 'R');
#$pdf->SetFont('Times', '', 10);
@ -447,7 +447,7 @@ $pdf->MultiCell(173, 3.9, "Seite 1 von 3", 0, 'R');
#$pdf->MultiCell(180, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'L');
$pagecount = $pdf->setSourceFile("anschreiben_kehl/anlage_erstantrag_praxisstelle_2022.pdf");
$pagecount = $pdf->setSourceFile("anschreiben_kehl/anlage_erstantrag_praxisstelle_2024.pdf");
$tplidx1 = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);

View File

@ -145,7 +145,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
#$pdf->SetFont('Arial', '', 10);
#$pdf->SetY(44.4);
#$pdf->SetX(22.3);
#$pdf->MultiCell(80, 3, "Hochschule Kehl - Postfach 1549 - 77675 Kehl", 0, 'L');
#$pdf->MultiCell(80, 3, "Hochschule Kehl - Kinzigallee 1 - 77694 Kehl", 0, 'L');
########Kontaktdaten HS Ende #####################
@ -219,7 +219,7 @@ $pos=$pdf->GetY()+4.3;
$pdf->SetFont('Arial', '', 10);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(173, 3.9, "wir weisen Sie gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 des Gesetzes vom 10. Juli 2020) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'L');
$pdf->MultiCell(173, 3.9, "wir weisen Sie gemäß § 22 Absatz 3 Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, zuletzt geändert durch Artikel 1 der Verordnung vom 19. September 2023) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'L');
@ -449,10 +449,10 @@ if(!isset($hist) or !isset($hist2)){
#$pdf->MultiCell(168, 4.8, "Beiliegende Anlagen sind Bestandteil des Zuweisungsbescheids.", 0, 'J');
if($hinweis_umzug == 1){
$pos=$pdf->GetY()+3;
$pdf->SetFont('Arial', '', 10);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 4.8, "* Für diesen Praxisabschnitt wird eine Umzugsvergütung gewährt.", 0, 'J');
$pdf->MultiCell(168, 4.8, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Kehl liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}
@ -511,16 +511,16 @@ $pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(168, 3.9, "gez. Corinne Feger\nStellvertretende Leiterin Servicezentrum Studium & Lehre", 0, 'L');
$pdf->MultiCell(168, 3.9, "gez. Corinne Feger\nStellv. Leitung Servicezentrum Studium & Lehre", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(280);
$pdf->SetX(24);
$pdf->MultiCell(173, 3.9, "Seite 1 von 4", 0, 'R');
#$pdf->SetFont('Arial', '', 8);
#$pdf->SetY(280);
#$pdf->SetX(24);
#$pdf->MultiCell(173, 3.9, "Seite 1 von 4", 0, 'R');
$pagecount = $pdf->setSourceFile("anschreiben_kehl/anlage_erstantrag_student_2023.pdf");
$pagecount = $pdf->setSourceFile("anschreiben_kehl/anlage_erstantrag_student_2024.pdf");
$tplidx1 = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);

View File

@ -1041,7 +1041,6 @@ $resultakt = $db->query("SELECT saaid, aendid, status, zuweisung, uid, dst_id
$row_akt = $resultakt->fetch_array(); // Prüfen ob schon Änderungsanträge vorhanden
$res_alt = $db->query("SELECT saaid, aendid, status, zuweisung, dst_id
FROM stan_antrag
WHERE saaid<'$saaid'
@ -1064,6 +1063,7 @@ $res_umzug_akt = $db->query("SELECT uid, pos, vert_bereich, art,dummy_dst, dst_i
WHERE saaid='$row_akt[saaid]'
LIMIT 1");
$row_umzug_akt = $res_umzug_akt->fetch_array();
if($row_umzug_alt['uid'] == $row_umzug_akt['uid'] AND
$row_umzug_alt['pos'] == $row_umzug_akt['pos'] AND
$row_umzug_alt['vert_bereich'] == $row_umzug_akt['vert_bereich'] AND
@ -1082,7 +1082,6 @@ if($row_umzug_alt['uid'] == $row_umzug_akt['uid'] AND
# Praxisstelle bekommt Brief
$inform_praxisstelle =1;
}
if($row_akt['zuweisung'] != 'Z'){
@ -1177,6 +1176,10 @@ if($row_akt['status'] == '1' AND $row_akt['zuweisung'] == NULL AND $row_akt['aen
printqueue_antrag($row_akt['saaid'], 'AEP', 'Änderungsschreiben an Praxisstelle mit zugewiesenem Änderungsantrag', $user_admin, $hs, 2);
printqueue_antrag($row_akt['saaid'], 'EZP', 'Erstantrag an Praxisstelle nach zugewiesenem Änderungsantrag', $user_admin, $hs, 3);
}
}else{
if($inform_praxisstelle == 1){
printqueue_antrag($row_akt['saaid'], 'AEP', 'Änderungsschreiben an Praxisstelle mit zugewiesenem Änderungsantrag', $user_admin, $hs, 2);
}
}
$saaid_cur = $row_akt['saaid'];
@ -1587,6 +1590,10 @@ if($row_akt['status'] == '1' AND $row_akt['zuweisung'] == NULL AND $row_akt['aen
printqueue_antrag($row_akt['saaid'], 'AEP', 'Änderungsschreiben an Praxisstelle mit zugewiesenem Änderungsantrag', $user_admin, $hs, 2);
printqueue_antrag($row_akt['saaid'], 'EZP', 'Erstantrag an Praxisstelle nach zugewiesenem Änderungsantrag', $user_admin, $hs, 3);
}
}else{
if($inform_praxisstelle == 1){
printqueue_antrag($row_akt['saaid'], 'AEP', 'Änderungsschreiben an Praxisstelle mit zugewiesenem Änderungsantrag', $user_admin, $hs, 2);
}
}
$saaid_cur = $row_akt['saaid'];

View File

@ -421,8 +421,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
$pdf->SetFont('Times', '', 9);
$pdf->SetY(44.4);
$pdf->SetX(22.3);
$pdf->MultiCell(80, 3, "Hochschule Kehl - Postfach 1549 - 77675 Kehl", 0, 'L');
$pdf->MultiCell(80, 3, "Hochschule Kehl - Kinzigallee 1 - 77694 Kehl", 0, 'L');
########Kontaktdaten HS Ende #####################

View File

@ -421,7 +421,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
$pdf->SetFont('Times', '', 9);
$pdf->SetY(44.4);
$pdf->SetX(22.3);
$pdf->MultiCell(80, 3, "Hochschule Kehl - Postfach 1549 - 77675 Kehl", 0, 'L');
$pdf->MultiCell(80, 3, "Hochschule Kehl - Kinzigallee 1 - 77694 Kehl", 0, 'L');
########Kontaktdaten HS Ende #####################

View File

@ -421,7 +421,7 @@ $pdf->MultiCell(47, 3, "$heute_format", 0, 'L');
$pdf->SetFont('Times', '', 9);
$pdf->SetY(44.4);
$pdf->SetX(22.3);
$pdf->MultiCell(80, 3, "Hochschule Kehl - Postfach 1549 - 77675 Kehl", 0, 'L');
$pdf->MultiCell(80, 3, "Hochschule Kehl - Kinzigallee 1 - 77694 Kehl", 0, 'L');
########Kontaktdaten HS Ende #####################

View File

@ -322,7 +322,7 @@ require_once("../../stud/prints/table_def.inc");
$pdf=new utfFPDF();
$pagecount = $pdf->setSourceFile("blanko_ludwigsburg.pdf");
$pagecount = $pdf->setSourceFile("briefkopf_blanko_2023.pdf");
$tplidx = $pdf->ImportPage(1);

View File

@ -323,7 +323,7 @@ $pdf=new utfFPDF();
$pagecount = $pdf->setSourceFile("blanko_ludwigsburg.pdf");
$pagecount = $pdf->setSourceFile("briefkopf_blanko_2023.pdf");
$tplidx = $pdf->ImportPage(1);

View File

@ -22,7 +22,7 @@ $pdf= new utfFPDF();
if($hs == 'K'){
$pagecount = $pdf->setSourceFile("anschreiben_kehl/blanko_kehl.pdf");
}else{
$pagecount = $pdf->setSourceFile("anschreiben/blanko_ludwigsburg.pdf");
$pagecount = $pdf->setSourceFile("anschreiben/briefkopf_blanko_2023.pdf");
}

View File

@ -10,7 +10,7 @@ require_once("prints/table_def.inc");
$pdf= new utfFPDF();
$pagecount = $pdf->setSourceFile("anschreiben/blanko_ludwigsburg.pdf");
$pagecount = $pdf->setSourceFile("anschreiben/briefkopf_blanko_2023.pdf");
#$pagecount = $pdf->setSourceFile("anschreiben/aenderung_praxisstelle.pdf");
$tplidx = $pdf->ImportPage(1);

View File

@ -32,7 +32,7 @@ $row_cur_uid_anz = $queryb->fetch_array();
if($row_cur_uid_anz[Anz] > 0){
if($row_cur_uid_anz['Anz'] > 0){
define('FPDF_FONTPATH','font/');
require('prints/as_utf_class.php');

View File

@ -126,7 +126,7 @@ $pdf2= new utfFPDF();
#if($hs == 'K' or $hs == 'k'){
# $pagecount = $pdf->setSourceFile("anschreiben_kehl/blanko_kehl.pdf");
#}else{
# $pagecount = $pdf->setSourceFile("anschreiben/blanko_ludwigsburg.pdf");
# $pagecount = $pdf->setSourceFile("anschreiben/briefkopf_blanko_2023.pdf");
#}

View File

@ -339,7 +339,7 @@ $pdf->SetFont('Arial', '', 11);
$pdf->SetY(61.3);
$pdf->SetX(24);
if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(0, 4.5, "Hochschule Kehl\nPostfach 1549\n77675 Kehl", 0, 'L');
$pdf->MultiCell(0, 4.5, "Hochschule Kehl\nServicezentrum Studium & Lehre\nKinzigallee 1\n77694 Kehl", 0, 'L');
}else{
$pdf->MultiCell(0, 4.5, "Hochschule Ludwigsburg\nZulassungsamt\nReuteallee 36\n71634 Ludwigsburg", 0, 'L');
}
@ -378,8 +378,8 @@ $pdf->SetY(120);
$header_type[0]['WIDTH'] = 6;
$header_type[1]['WIDTH'] = 60;
$header_type[2]['WIDTH'] = 64;
$header_type[3]['WIDTH'] = 35;
$header_type[2]['WIDTH'] = 70;
$header_type[3]['WIDTH'] = 29;
$header_type[0]['TEXT'] = "";
$header_type[1]['TEXT'] = "Ausbildungsstelle Anschrift";
@ -415,6 +415,7 @@ $pdf->SetY(120);
, t1.saaid saaid
, t1.aendid
, t1.status
, t1.umzugsverg
FROM stan_antrag t1
WHERE t1.status = (
SELECT MAX(t2.status)
@ -432,7 +433,7 @@ $pdf->SetY(120);
or die ("Cannot execute query1");
$hinweis_umzug=0;
while ($row = $result->fetch_array())
{
$data = Array();
@ -443,14 +444,24 @@ $pdf->SetY(120);
$res4 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen WHERE dst_id='$row[dst_id]'");
$row4 = $res4->fetch_array();
if($row4['bez'] != ''){
$dst_bez = $row4['bez']." ".$row4['name'];
if($row['umzugsverg'] == 'J'){
$dst_bez = "$row4[bez] ".trim($row4['name'])."*";
$hinweis_umzug=1;
}else{
$dst_bez = $row4['bez']." ".$row4['name'];
}
$ort = $row4['ort'];
$str = $row4['str'];
$plz = $row4['plz'];
}else{
$res5 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen_tmp WHERE dst_id='$row[dst_id]'");
$row5 = $res5->fetch_array();
$dst_bez = $row5['bez']." ".$row5['name'];
if($row['umzugsverg'] == 'J'){
$dst_bez = "$row5[bez] $row5[name]*";
$hinweis_umzug=1;
}else{
$dst_bez = $row5['bez']." ".$row5['name'];
}
$ort = $row5['ort'];
$str = $row5['str'];
$plz = $row5['plz'];
@ -634,7 +645,21 @@ $pdf->SetY($pos);
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+10;
if($hinweis_umzug == 1){
$pos = $pdf->GetY() -3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(24);
if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(165, 4, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Kehl liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}else{
$pdf->MultiCell(165, 4, "* Für diesen Praxisabschnitt wird Ihnen hiermit gem. § 4 Abs. 1 Nr. 3 und 6 Landesumzugskostengesetz (LUKG) für den Hin- und Rückumzug die Umzugskostenvergütung zugesagt. Diese gilt jedoch nicht, wenn die vorgenannte Praxisstelle im Stadtgebiet Ludwigsburg liegt. In diesem Fall erhalten Sie weder eine Umzugskostenvergütung, noch Trennungsgeld, da insoweit keine Zuweisung an einen anderen Ort, als den bisherigen Dienstort erfolgt.", 0, 'J');
}
}
$pos=$pdf->GetY()+5;
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(24);

View File

@ -11,7 +11,7 @@ require('as_utf_class.php');
error_reporting (E_ALL);
define('FPDF_FONTPATH','font/');
require('as_utf_class.php');

View File

@ -11,7 +11,7 @@ require('as_utf_class.php');
error_reporting (E_ALL);
define('FPDF_FONTPATH','font/');
require('as_utf_class.php');

View File

@ -1,289 +0,0 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>FAQ</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="fpdf.css">
</HEAD>
<BODY>
<H2>FAQ</H2>
<B>1.</B> <A HREF='#1'>What's exactly the license of FPDF? Are there any usage restrictions?</A><BR>
<B>2.</B> <A HREF='#2'>When I try to create a PDF, a lot of weird characters show on the screen. Why?</A><BR>
<B>3.</B> <A HREF='#3'>I try to generate a PDF and IE displays a blank page. What happens?</A><BR>
<B>4.</B> <A HREF='#4'>I send parameters using the POST method and the values don't appear in the PDF.</A><BR>
<B>5.</B> <A HREF='#5'>When I use a PHP session, IE doesn't display my PDF any more but asks me to download it.</A><BR>
<B>6.</B> <A HREF='#6'>When I'm on SSL, IE can't open the PDF.</A><BR>
<B>7.</B> <A HREF='#7'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</A><BR>
<B>8.</B> <A HREF='#8'>I try to put a PNG and Acrobat says "There was an error processing a page. A drawing error occurred".</A><BR>
<B>9.</B> <A HREF='#9'>I encounter the following error when I try to generate a PDF: Warning: Cannot add header information - headers already sent by (output started at script.php:X)</A><BR>
<B>10.</B> <A HREF='#10'>I try to display a variable in the Header method but nothing prints.</A><BR>
<B>11.</B> <A HREF='#11'>I defined the Header and Footer methods in my PDF class but nothing appears.</A><BR>
<B>12.</B> <A HREF='#12'>I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.</A><BR>
<B>13.</B> <A HREF='#13'>I try to put the euro symbol but it doesn't work.</A><BR>
<B>14.</B> <A HREF='#14'>I draw a frame with very precise dimensions, but when printed I notice some differences.</A><BR>
<B>15.</B> <A HREF='#15'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</A><BR>
<B>16.</B> <A HREF='#16'>What's the limit of the file sizes I can generate with FPDF?</A><BR>
<B>17.</B> <A HREF='#17'>Can I modify a PDF with FPDF?</A><BR>
<B>18.</B> <A HREF='#18'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</A><BR>
<B>19.</B> <A HREF='#19'>Can I convert an HTML page to PDF with FPDF?</A><BR>
<B>20.</B> <A HREF='#20'>Can I concatenate PDF files with FPDF?</A><BR>
<BR><BR>
<P><A NAME='1'></A><B>1.</B> <FONT CLASS='st'>What's exactly the license of FPDF? Are there any usage restrictions?</FONT></P>
FPDF is Freeware (it is stated at the beginning of the source file). There is no usage
restriction. You may embed it freely in your application (commercial or not), with or
without modification. You may redistribute it, too.
<P><A NAME='2'></A><B>2.</B> <FONT CLASS='st'>When I try to create a PDF, a lot of weird characters show on the screen. Why?</FONT></P>
These "weird" characters are in fact the actual content of your PDF. This behaviour is a bug of
IE. When it first receives an HTML page, then a PDF from the same URL, it displays it directly
without launching Acrobat. This happens frequently during the development stage: on the least
script error, an HTML page is sent, and after correction, the PDF arrives.
<BR>
To solve the problem, simply quit and restart IE. You can also go to another URL and come
back.
<BR>
To avoid this kind of inconvenience during the development, you can generate the PDF directly
to a file and open it through the explorer.
<P><A NAME='3'></A><B>3.</B> <FONT CLASS='st'>I try to generate a PDF and IE displays a blank page. What happens?</FONT></P>
First of all, check that you send nothing to the browser after the PDF (not even a space or a
carriage return). You can put an exit statement just after the call to the Output() method to
be sure.
<BR>
If it still doesn't work, it means you're a victim of the "blank page syndrome". IE used in
conjunction with the Acrobat plug-in suffers from numerous bugs, in all versions. You should
test your application with as many IE versions as possible (at least if you're on the Internet).
The problem occurs mostly with the POST method, so it is strongly advised to avoid it (all the
more that it causes other problems, see the next question). The GET works better but may fail
when the URL becomes too long: don't use a query string with more than 45 characters. However, a
tip exists to exceed this limit: end the URL with .pdf, which tricks IE. If you use a form, you
can add a hidden field at the last position:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
&lt;INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;ext&quot; VALUE=&quot;.pdf&quot;&gt;
</TT>
</TD></TR></TABLE><BR>
The usage of PHP sessions also often causes trouble (avoid using HTTP headers preventing caching).
See question 5 for a workaround.
<BR>
<BR>
To avoid all these problems in a reliable manner, two main techniques exist:
<BR>
<BR>
- Disable the plug-in and use Acrobat as a helper application. To do this, launch Acrobat; in
the File menu, Preferences, General, uncheck the option "Web Browser Integration" (for Acrobat
5: Edit, Preferences, Options, "Display PDF in Browser"). Then, the next time you load a PDF in
IE, it displays the dialog box "Open it" or "Save it to disk". Uncheck the option "Always ask
before opening this type of file" and choose Open. From now on, PDF files will open
automatically in an external Acrobat window.
<BR>
The drawback of the method is that you need to alter the client configuration, which you can do
in an intranet environment but not for the Internet.
<BR>
<BR>
- Use a redirection technique. It consists in generating the PDF in a temporary file on the
server and redirect the client on it (by using JavaScript, not the Location HTTP header which
also causes trouble). For instance, at the end of the script, you can put the following:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
//Determine a temporary file name in the current directory<BR>
$file=basename(tempnam(getcwd(),'tmp'));<BR>
//Save PDF to file<BR>
$pdf-&gt;Output($file);<BR>
//JavaScript redirection<BR>
echo &quot;&lt;HTML&gt;&lt;SCRIPT&gt;document.location='getpdf.php?f=$file';&lt;/SCRIPT&gt;&lt;/HTML&gt;&quot;;
</TT>
</TD></TR></TABLE><BR>
Then create the getpdf.php file with this:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
&lt;?php<BR>
$f=$HTTP_GET_VARS['f'];<BR>
//Check file (don't skip it!)<BR>
if(substr($f,0,3)!='tmp' or strpos($f,'/') or strpos($f,'\\'))<BR>
&nbsp;&nbsp;&nbsp;&nbsp;die('Incorrect file name');<BR>
if(!file_exists($f))<BR>
&nbsp;&nbsp;&nbsp;&nbsp;die('File does not exist');<BR>
//Handle special IE request if needed<BR>
if($HTTP_SERVER_VARS['HTTP_USER_AGENT']=='contype')<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;Header('Content-Type: application/pdf');<BR>
&nbsp;&nbsp;&nbsp;&nbsp;exit;<BR>
}<BR>
//Output PDF<BR>
Header('Content-Type: application/pdf');<BR>
Header('Content-Length: '.filesize($f));<BR>
readfile($f);<BR>
//Remove file<BR>
unlink($f);<BR>
exit;<BR>
?&gt;
</TT>
</TD></TR></TABLE><BR>
This method works in most cases but IE6 can still experience trouble. The "ultimate" method
consists in redirecting directly to the temporary file. The file name must therefore end with .pdf:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
//Determine a temporary file name in the current directory<BR>
$file=basename(tempnam(getcwd(),'tmp'));<BR>
rename($file,$file.'.pdf');<BR>
$file.='.pdf';<BR>
//Save PDF to file<BR>
$pdf-&gt;Output($file);<BR>
//JavaScript redirection<BR>
echo &quot;&lt;HTML&gt;&lt;SCRIPT&gt;document.location='$file';&lt;/SCRIPT&gt;&lt;/HTML&gt;&quot;;
</TT>
</TD></TR></TABLE><BR>
This method turns the dynamic PDF into a static one and avoids all troubles. But you have to do
some cleaning in order to delete the temporary files. For instance:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
function CleanFiles($dir)<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Delete temporary files<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$t=time();<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$h=opendir($dir);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;while($file=readdir($h))<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(substr($file,0,3)=='tmp' and substr($file,-4)=='.pdf')<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$path=$dir.'/'.$file;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($t-filemtime($path)&gt;3600)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@unlink($path);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;closedir($h);<BR>
}
</TT>
</TD></TR></TABLE><BR>
This function deletes all files of the form tmp*.pdf older than an hour in the specified
directory. You may call it where you want, for instance in the script which generates the PDF.
<BR>
<BR>
Remark: it is necessary to open the PDF in a new window, as you can't go backwards due to the
redirection.
<P><A NAME='4'></A><B>4.</B> <FONT CLASS='st'>I send parameters using the POST method and the values don't appear in the PDF.</FONT></P>
It's a problem affecting some versions of IE (especially the first 5.5). See the previous
question for the ways to work around it.
<P><A NAME='5'></A><B>5.</B> <FONT CLASS='st'>When I use a PHP session, IE doesn't display my PDF any more but asks me to download it.</FONT></P>
It's a problem affecting some versions of IE. To work around it, add the following line before
session_start():
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
session_cache_limiter('private');
</TT>
</TD></TR></TABLE><BR>
or do a redirection as explained in question 3.
<P><A NAME='6'></A><B>6.</B> <FONT CLASS='st'>When I'm on SSL, IE can't open the PDF.</FONT></P>
The problem may be fixed by adding this line:<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
Header('Pragma: public');
</TT>
</TD></TR></TABLE><BR>
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
When the decimal separator is configured as a comma before including a file, there is a
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
setlocale() call.
<P><A NAME='8'></A><B>8.</B> <FONT CLASS='st'>I try to put a PNG and Acrobat says "There was an error processing a page. A drawing error occurred".</FONT></P>
Acrobat 5 has a bug and is unable to display transparent monochrome images (i.e. with 1 bit per
pixel). Remove transparency or save your image in 16 colors (4 bits per pixel) or more.
<P><A NAME='9'></A><B>9.</B> <FONT CLASS='st'>I encounter the following error when I try to generate a PDF: Warning: Cannot add header information - headers already sent by (output started at script.php:X)</FONT></P>
You must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return,
neither before nor after. The script outputs something at line X.
<P><A NAME='10'></A><B>10.</B> <FONT CLASS='st'>I try to display a variable in the Header method but nothing prints.</FONT></P>
You have to use the <TT>global</TT> keyword, for instance:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
function Header()<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;global $title;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetFont('Arial','B',15);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(0,10,$title,1,1,'C');<BR>
}
</TT>
</TD></TR></TABLE><BR>
<P><A NAME='11'></A><B>11.</B> <FONT CLASS='st'>I defined the Header and Footer methods in my PDF class but nothing appears.</FONT></P>
You have to create an object from the PDF class, not FPDF:<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
$pdf=new PDF();
</TT>
</TD></TR></TABLE><BR>
<P><A NAME='12'></A><B>12.</B> <FONT CLASS='st'>I can't make line breaks work. I put \n in the string printed by MultiCell but it doesn't work.</FONT></P>
You have to enclose your string with double quotes, not single ones.
<P><A NAME='13'></A><B>13.</B> <FONT CLASS='st'>I try to put the euro symbol but it doesn't work.</FONT></P>
The standard fonts have the euro character at position 128. You can define a constant like this
for convenience:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
define('EURO',chr(128));
</TT>
</TD></TR></TABLE><BR>
Note: Acrobat 4 or higher is required to display euro.
<P><A NAME='14'></A><B>14.</B> <FONT CLASS='st'>I draw a frame with very precise dimensions, but when printed I notice some differences.</FONT></P>
To respect dimensions, you have to uncheck the option "Fit to page" in the print dialog box.
<P><A NAME='15'></A><B>15.</B> <FONT CLASS='st'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</FONT></P>
All printers have physical margins (different depending on the model), it is therefore impossible
to remove them and print on the totality of the paper.
<P><A NAME='16'></A><B>16.</B> <FONT CLASS='st'>What's the limit of the file sizes I can generate with FPDF?</FONT></P>
There is no particular limit. There are some constraints however:
<BR>
<BR>
- The maximum memory size allocated to PHP scripts defaults to 8MB. For very big documents,
especially with images, this limit may be reached (the file being built into memory). The
parameter is configured in the php.ini file.
<BR>
<BR>
- The maximum execution time allocated defaults to 30 seconds. This limit can of course be easily
reached. It is configured in php.ini and may be altered dynamically with set_time_limit().
<BR>
<BR>
- Browsers generally have a 5 minute time-out. If you send the PDF directly to the browser and
reach the limit, it will be lost. It is therefore advised for very big documents to
generate them in a file, and to send some data to the browser from time to time (for instance
page 1, page 2... with flush() to force the output). When the document is finished, you can send
a redirection on it with JavaScript or create a link.
<BR>
Remark: even when the browser goes in time-out, the script may continue to run on the server.
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
You can import an existing PDF document thanks to the FPDI extension:<BR>
<BR>
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
a PDF. It is provided with the Xpdf package:<BR>
<BR>
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
<BR>
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
No. But some free tools exist to perform this task:<BR>
<BR>
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
</BODY>
</HTML>

View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,9 +0,0 @@
This software contains code derived from an article in the magazine
php|architect by Marco Tabini.
This software contains code derived from Oliver Plathey - The author of
FPDF. FPDF is available from: http://www.fpdf.org
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
http://www.lowagie.com/iText/

Binary file not shown.

View File

@ -1,304 +0,0 @@
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Name, Vorname</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h1
{margin:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:12.0pt;
font-family:Arial;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
/* List Definitions */
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=DE>
<div class=Section1>
<h1><span style='font-size:11.0pt;font-weight:normal'>Matrikelnr.: 081579</span></h1>
<p class=MsoNormal><span style='font-size:11.0pt'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
style='border-collapse:collapse;border:none'>
<tr>
<td width=272 valign=top style='width:204.0pt;border:none;border-bottom:solid windowtext 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal><span style='font-size:7.0pt;font-family:Arial'>Alexander
Schwarz<72> </span><span style='font-size:7.0pt;font-family:Wingdings'>&#159;</span><span
style='font-size:7.0pt;font-family:Arial'><EFBFBD> Innsbrucker Str. 53<35> </span><span
style='font-size:7.0pt;font-family:Wingdings'>&#159;</span><span
style='font-size:7.0pt;font-family:Arial'><EFBFBD> 70329 Stuttgart</span></p>
</td>
</tr>
</table>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>FH-Ludwigsburg</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>Zulassungsamt</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>Reuteallee
36</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>71364
Ludwigsburg</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:Arial'>&nbsp;</span></p>
<h1>&nbsp;</h1>
<h1>Praktische Ausbildung im Vorbereitungsdienst</h1>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
<h1>Antrag auf Zuweisung zu den Ausbildungsstellen</h1>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=629
style='width:471.5pt;border-collapse:collapse;border:none'>
<tr>
<td valign=top style='border:solid windowtext 1.0pt;padding:0cm 3.5pt 0cm 3.5pt'>
<p class=MsoNormal style='margin-right:40.1pt'><b><span style='font-family:
Arial'>&nbsp;</span></b></p>
</td>
<td width=152 valign=top style='width:113.85pt;border:solid windowtext 1.0pt;
border-left:none;padding:0cm 3.5pt 0cm 3.5pt'>
<p class=MsoNormal><b><span style='font-family:Arial'>Ausbildungsstelle</span></b></p>
<p class=MsoNormal><b><span style='font-family:Arial'>Anschrift</span></b></p>
</td>
<td width=152 valign=top style='width:113.85pt;border:solid windowtext 1.0pt;
border-left:none;padding:0cm 3.5pt 0cm 3.5pt'>
<p class=MsoNormal><b><span style='font-family:Arial'>Ausbildungsinhalt</span></b></p>
<p class=MsoNormal><b><span style='font-family:Arial'>&nbsp;</span></b></p>
</td>
<td width=152 valign=top style='width:113.85pt;border:solid windowtext 1.0pt;
border-left:none;padding:0cm 3.5pt 0cm 3.5pt'>
<p class=MsoNormal><b><span style='font-family:Arial'>Sachbereich</span></b></p>
</td>
<td width=152 valign=top style='width:113.9pt;border:solid windowtext 1.0pt;
border-left:none;padding:0cm 3.5pt 0cm 3.5pt'>
<p class=MsoNormal><b><span style='font-family:Arial'>Zeitraum</span></b></p>
</td>
</tr>
<tr style='height:2.0cm'>
<td style='border:solid windowtext 1.0pt;border-top:none;padding:0cm 3.5pt 0cm 3.5pt;
height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>1</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.9pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
</tr>
<tr style='height:2.0cm'>
<td style='border:solid windowtext 1.0pt;border-top:none;padding:0cm 3.5pt 0cm 3.5pt;
height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>2</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.9pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
</tr>
<tr style='height:2.0cm'>
<td style='border:solid windowtext 1.0pt;border-top:none;padding:0cm 3.5pt 0cm 3.5pt;
height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>3</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.9pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
</tr>
<tr style='height:2.0cm'>
<td style='border:solid windowtext 1.0pt;border-top:none;padding:0cm 3.5pt 0cm 3.5pt;
height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>4</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.85pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
<td width=152 style='width:113.9pt;border-top:none;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
padding:0cm 3.5pt 0cm 3.5pt;height:2.0cm'>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
</td>
</tr>
</table>
<p class=MsoNormal><span style='font-family:Arial'>&nbsp;</span></p>
<h1>Pers<EFBFBD>nliche Erkl<6B>rung</h1>
<p class=MsoNormal style='margin-left:18.0pt;text-indent:-18.0pt'><b><span
style='font-family:Arial'>1. <20> Die Hinweise der Fachhochschule Ludwigsburg zur
praktischen Ausbildung gem. <20> 17 Abs. 1 AprOVw gD (Praxisjahr) habe ich zur
Kenntnis genommen.</span></b></p>
<p class=MsoNormal style='margin-left:18.0pt;text-indent:-18.0pt'><b><span
style='font-family:Arial'>2.<2E><> F<>r die Zeit einer Zuweisung au<61>erhalb
Baden-W<>rttembergs verzichte ich auf die Erstattung etwaiger Reisekosten sowie
auf die Verg<72>tung von Umzugskosten und Trennungsgeld.</span></b></p>
<p class=MsoNormal style='margin-left:18.0pt;text-indent:-18.0pt'><b><span
style='font-family:Arial'>3.<2E><> Das Einverst<73>ndnis aller o.a. Ausbildungsstellen
liegt mir vor.</span></b></p>
<p class=MsoNormal style='margin-left:18.0pt;text-indent:-18.0pt'><span
style='font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:35.25pt;text-indent:-35.25pt'><span
style='font-family:Arial'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:35.25pt;text-indent:-35.25pt'>
<table cellpadding=0 cellspacing=0 align=left>
<tr>
<td width=19 height=396></td>
<td width=12></td>
<td width=13></td>
</tr>
<tr>
<td height=2></td>
<td align=left valign=top><img width=12 height=2
src="Praxisstellen-Dateien/image001.gif"></td>
</tr>
<tr>
<td height=163></td>
</tr>
<tr>
<td height=2></td>
<td colspan=2 align=left valign=top><img width=25 height=2
src="Praxisstellen-Dateien/image002.gif"></td>
</tr>
<tr>
<td height=234></td>
</tr>
<tr>
<td height=2></td>
<td align=left valign=top><img width=12 height=2
src="Praxisstellen-Dateien/image001.gif"></td>
</tr>
</table>
<span style='font-family:Arial'>&nbsp;</span></p>
<div style='border:none;border-bottom:solid windowtext 1.5pt;padding:0cm 0cm 1.0pt 0cm'>
<p class=MsoNormal style='margin-left:35.25pt;text-indent:-35.25pt;border:none;
padding:0cm'><span style='font-family:Arial'>&nbsp;</span></p>
</div>
<br clear=ALL>
<p class=MsoNormal style='margin-left:35.25pt;text-indent:-35.25pt'><span
style='font-family:Arial'>Datum, Unterschrift</span></p>
</div>
</body>
</html>

Binary file not shown.

View File

@ -1,661 +0,0 @@
<?php
/****************************************************************************
* Software: FPDF class extension *
* Tag Based Multicell *
* Version: 1.3 *
* Date: 2005/12/08 *
* Author: Bintintan Andrei -- klodoma@ar-sd.net *
* *
* Last Modification: 2006/09/18 *
* *
* *
* License: Free for non-commercial use *
* *
* You may use and modify this software as you wish. *
* PLEASE REPORT ANY BUGS TO THE AUTHOR. THANK YOU *
****************************************************************************/
/**
Modifications:
2006.09.18
- added YPOS parameter to the tab for super/subscript posibility. ypos = '-1' means the relative position to the normal Y.
2006.07.30
- added Paragraph Support(a sort of) - paragraphs can be specified with size='integer value' and PARAGRAPH_STRING character
2006.05.18
- removed the NBLines functions
- added StringToLines function
- modified MultiCellTag to accept as data parameter an array type like the return from StringToLines function
- these modifications does not affect the main class behavior, they are used for further developement and class extensions
*/
require_once('fpdf.php');
require_once("class.string_tags.php");
if (!defined('PARAGRAPH_STRING')) define('PARAGRAPH_STRING', '~~~');
class FPDF_MULTICELLTAG extends own2{
var $wt_Current_Tag;
var $wt_FontInfo;//tags font info
var $wt_DataInfo;//parsed string data info
var $wt_DataExtraInfo;//data extra INFO
var $wt_TempData; //some temporary info
function _wt_Reset_Datas(){
$this->wt_Current_Tag = "";
$this->wt_DataInfo = array();
$this->wt_DataExtraInfo = array(
"LAST_LINE_BR" => "", //CURRENT LINE BREAK TYPE
"CURRENT_LINE_BR" => "", //LAST LINE BREAK TYPE
"TAB_WIDTH" => 10 //The tab WIDTH IS IN mm
);
//if another measure unit is used ... calculate your OWN
$this->wt_DataExtraInfo["TAB_WIDTH"] *= (72/25.4) / $this->k;
/*
$this->wt_FontInfo - do not reset, once read ... is OK!!!
*/
}//function _wt_Reset_Datas(){
/**
Sets current tag to specified style
@param $tag - tag name
$family - text font family
$style - text style
$size - text size
$color - text color
@return nothing
*/
function SetStyle($tag,$family,$style,$size,$color)
{
if ($tag == "ttags") $this->Error (">> ttags << is reserved TAG Name.");
if ($tag == "") $this->Error ("Empty TAG Name.");
//use case insensitive tags
$tag=trim(strtoupper($tag));
$this->TagStyle[$tag]['family']=trim($family);
$this->TagStyle[$tag]['style']=trim($style);
$this->TagStyle[$tag]['size']=trim($size);
$this->TagStyle[$tag]['color']=trim($color);
}//function SetStyle
/**
Sets current tag style as the current settings
- if the tag name is not in the tag list then de "DEFAULT" tag is saved.
This includes a fist call of the function SaveCurrentStyle()
@param $tag - tag name
@return nothing
*/
function ApplyStyle($tag){
//use case insensitive tags
$tag=trim(strtoupper($tag));
if ($this->wt_Current_Tag == $tag) return;
if (($tag == "") || (! isset($this->TagStyle[$tag]))) $tag = "DEFAULT";
$this->wt_Current_Tag = $tag;
$style = & $this->TagStyle[$tag];
if (isset($style)){
$this->SetFont($style['family'], $style['style'], $style['size']);
//this is textcolor in FPDF format
if (isset($style['textcolor_fpdf'])) {
$this->TextColor = $style['textcolor_fpdf'];
$this->ColorFlag=($this->FillColor!=$this->TextColor);
}else
{
if ($style['color'] <> ""){//if we have a specified color
$temp = explode(",", $style['color']);
$this->SetTextColor($temp[0], $temp[1], $temp[2]);
}//fi
}
/**/
}//isset
}//function ApplyStyle($tag){
/**
Save the current settings as a tag default style under the DEFAUTLT tag name
@param none
@return nothing
*/
function SaveCurrentStyle(){
//*
$this->TagStyle['DEFAULT']['family'] = $this->FontFamily;;
$this->TagStyle['DEFAULT']['style'] = $this->FontStyle;
$this->TagStyle['DEFAULT']['size'] = $this->FontSizePt;
$this->TagStyle['DEFAULT']['textcolor_fpdf'] = $this->TextColor;
$this->TagStyle['DEFAULT']['color'] = "";
/**/
}//function SaveCurrentStyle
/**
Divides $this->wt_DataInfo and returnes a line from this variable
@param $w - Width of the text
@return $aLine = array() -> contains informations to draw a line
*/
function MakeLine($w){
$aDataInfo = & $this->wt_DataInfo;
$aExtraInfo = & $this->wt_DataExtraInfo;
//last line break >> current line break
$aExtraInfo['LAST_LINE_BR'] = $aExtraInfo['CURRENT_LINE_BR'];
$aExtraInfo['CURRENT_LINE_BR'] = "";
if($w==0)
$w=$this->w - $this->rMargin - $this->x;
$wmax = ($w - 2*$this->cMargin) * 1000;//max width
$aLine = array();//this will contain the result
$return_result = false;//if break and return result
$reset_spaces = false;
$line_width = 0;//line string width
$total_chars = 0;//total characters included in the result string
$space_count = 0;//numer of spaces in the result string
$fw = & $this->wt_FontInfo;//font info array
$last_sepch = ""; //last separator character
foreach ($aDataInfo as $key => $val){
$s = $val['text'];
$tag = &$val['tag'];
$bParagraph = false;
if (($s == "\t") && ($tag == 'pparg')){
$bParagraph = true;
$s = "\t";//place instead a TAB
}
$s_lenght=strlen($s);
$i = 0;//from where is the string remain
$j = 0;//untill where is the string good to copy -- leave this == 1->> copy at least one character!!!
$str = "";
$s_width = 0; //string width
$last_sep = -1; //last separator position
$last_sepwidth = 0;
$last_sepch_width = 0;
$ante_last_sep = -1; //ante last separator position
$spaces = 0;
//parse the whole string
while ($i < $s_lenght){
$c = $s[$i];
if($c == "\n"){//Explicit line break
$i++; //ignore/skip this caracter
$aExtraInfo['CURRENT_LINE_BR'] = "BREAK";
$return_result = true;
$reset_spaces = true;
break;
}
//space
if($c == " "){
$space_count++;//increase the number of spaces
$spaces ++;
}
// Font Width / Size Array
if (!isset($fw[$tag]) || ($tag == "")){
//if this font was not used untill now,
$this->ApplyStyle($tag);
$fw[$tag]['w'] = $this->CurrentFont['cw'];//width
$fw[$tag]['s'] = $this->FontSize;//size
}
$char_width = $fw[$tag]['w'][$c] * $fw[$tag]['s'];
//separators
if(is_int(strpos(" ,.:;",$c))){
$ante_last_sep = $last_sep;
$ante_last_sepch = $last_sepch;
$ante_last_sepwidth = $last_sepwidth;
$ante_last_sepch_width = $last_sepch_width;
$last_sep = $i;//last separator position
$last_sepch = $c;//last separator char
$last_sepch_width = $char_width;//last separator char
$last_sepwidth = $s_width;
}
if ($c == "\t"){//TAB
$c = $s[$i] = "";
$char_width = $aExtraInfo['TAB_WIDTH'] * 1000;
}
if ($bParagraph == true){
$c = $s[$i] = "";
$char_width = $this->wt_TempData['LAST_TAB_REQSIZE']*1000 - $this->wt_TempData['LAST_TAB_SIZE'];
if ($char_width < 0) $char_width = 0;
}
$line_width += $char_width;
if($line_width > $wmax){//Automatic line break
$aExtraInfo['CURRENT_LINE_BR'] = "AUTO";
if ($total_chars == 0) {
/* This MEANS that the $w (width) is lower than a char width...
Put $i and $j to 1 ... otherwise infinite while*/
$i = 1;
$j = 1;
$return_result = true;//YES RETURN THE RESULT!!!
break;
}//fi
if ($last_sep <> -1){
//we have a separator in this tag!!!
//untill now there one separator
if (($last_sepch == $c) && ($last_sepch != " ") && ($ante_last_sep <> -1)){
/* this is the last character and it is a separator, if it is a space the leave it...
Have to jump back to the last separator... even a space
*/
$last_sep = $ante_last_sep;
$last_sepch = $ante_last_sepch;
$last_sepwidth = $ante_last_sepwidth;
}
if ($last_sepch == " "){
$j = $last_sep;//just ignore the last space (it is at end of line)
$i = $last_sep + 1;
if ( $spaces > 0 ) $spaces --;
$s_width = $last_sepwidth;
}else{
$j = $last_sep + 1;
$i = $last_sep + 1;
$s_width = $last_sepwidth + $last_sepch_width;
}
}elseif(count($aLine) > 0){
//we have elements in the last tag!!!!
if ($last_sepch == " "){//the last tag ends with a space, have to remove it
$temp = & $aLine[ count($aLine)-1 ];
if ($temp['text'][strlen($temp['text'])-1] == " "){
$temp['text'] = substr($temp['text'], 0, strlen($temp['text']) - 1);
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
//imediat return from this function
break 2;
}else{
#die("should not be!!!");
}//fi
}//fi
}//fi else
$return_result = true;
break;
}//fi - Auto line break
//increase the string width ONLY when it is added!!!!
$s_width += $char_width;
$i++;
$j = $i;
$total_chars ++;
}//while
$str = substr($s, 0, $j);
$sTmpStr = & $aDataInfo[$key]['text'];
$sTmpStr = substr($sTmpStr, $i, strlen($sTmpStr));
if (($sTmpStr == "") || ($sTmpStr === FALSE))//empty
array_shift($aDataInfo);
if ($val['text'] == $str){
}
if (!isset($val['href'])) $val['href']='';
if (!isset($val['ypos'])) $val['ypos']=0;
//we have a partial result
array_push($aLine, array(
'text' => $str,
'tag' => $val['tag'],
'href' => $val['href'],
'width' => $s_width,
'spaces' => $spaces,
'ypos' => $val['ypos']
));
$this->wt_TempData['LAST_TAB_SIZE'] = $s_width;
$this->wt_TempData['LAST_TAB_REQSIZE'] = (isset($val['size'])) ? $val['size'] : 0;
if ($return_result) break;//break this for
}//foreach
// Check the first and last tag -> if first and last caracters are " " space remove them!!!"
if ((count($aLine) > 0) && ($aExtraInfo['LAST_LINE_BR'] == "AUTO")){
//first tag
$temp = & $aLine[0];
if ( (strlen($temp['text']) > 0) && ($temp['text'][0] == " ")){
$temp['text'] = substr($temp['text'], 1, strlen($temp['text']));
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
}
//last tag
$temp = & $aLine[count($aLine) - 1];
if ( (strlen($temp['text'])>0) && ($temp['text'][strlen($temp['text'])-1] == " ")){
$temp['text'] = substr($temp['text'], 0, strlen($temp['text']) - 1);
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
}
}
if ($reset_spaces){//this is used in case of a "Explicit Line Break"
//put all spaces to 0 so in case of "J" align there is no space extension
for ($k=0; $k< count($aLine); $k++) $aLine[$k]['spaces'] = 0;
}//fi
return $aLine;
}//function MakeLine
/**
Draws a MultiCell with TAG recognition parameters
@param $w - with of the cell
$h - height of the cell
$pData - string or data to be printed
$border - border
$align - align
$fill - fill
$pDataIsString - true if $pData is a string
- false if $pData is an array containing lines formatted with $this->MakeLine($w) function
(the false option is used in relation with StringToLines, to avoid double formatting of a string
These paramaters are the same and have the same behavior as at Multicell function
@return nothing
*/
function MultiCellTag($w, $h, $pData, $border=0, $align='J', $fill=0, $pDataIsString = true){
//save the current style settings, this will be the default in case of no style is specified
$this->SaveCurrentStyle();
$this->_wt_Reset_Datas();
//if data is string
if ($pDataIsString === true) $this->DivideByTags($pData);
$b = $b1 = $b2 = $b3 = '';//borders
//save the current X position, we will have to jump back!!!!
$startX = $this -> GetX();
if($border)
{
if($border==1)
{
$border = 'LTRB';
$b1 = 'LRT';//without the bottom
$b2 = 'LR';//without the top and bottom
$b3 = 'LRB';//without the top
}
else
{
$b2='';
if(is_int(strpos($border,'L')))
$b2.='L';
if(is_int(strpos($border,'R')))
$b2.='R';
$b1=is_int(strpos($border,'T')) ? $b2 . 'T' : $b2;
$b3=is_int(strpos($border,'B')) ? $b2 . 'B' : $b2;
}
//used if there is only one line
$b = '';
$b .= is_int(strpos($border,'L')) ? 'L' : "";
$b .= is_int(strpos($border,'R')) ? 'R' : "";
$b .= is_int(strpos($border,'T')) ? 'T' : "";
$b .= is_int(strpos($border,'B')) ? 'B' : "";
}
$first_line = true;
$last_line = false;
if ($pDataIsString === true){
$last_line = !(count($this->wt_DataInfo) > 0);
}else {
$last_line = !(count($pData) > 0);
}
while(!$last_line){
if ($fill == 1){
//fill in the cell at this point and write after the text without filling
$this->Cell($w,$h,"",0,0,"",1);
$this->SetX($startX);//restore the X position
}
if ($pDataIsString === true){
//make a line
$str_data = $this->MakeLine($w);
//check for last line
$last_line = !(count($this->wt_DataInfo) > 0);
}else {
//make a line
$str_data = array_shift($pData);
//check for last line
$last_line = !(count($pData) > 0);
}
if ($last_line && ($align == "J")){//do not Justify the Last Line
$align = "L";
}
//outputs a line
$this->PrintLine($w, $h, $str_data, $align);
//see what border we draw:
if($first_line && $last_line){
//we have only 1 line
$real_brd = $b;
}elseif($first_line){
$real_brd = $b1;
}elseif($last_line){
$real_brd = $b3;
}else{
$real_brd = $b2;
}
if ($first_line) $first_line = false;
//draw the border and jump to the next line
$this->SetX($startX);//restore the X
$this->Cell($w,$h,"",$real_brd,2);
}//while(! $last_line){
//APPLY THE DEFAULT STYLE
$this->ApplyStyle("DEFAULT");
$this->x=$this->lMargin;
}//function MultiCellExt
/**
This method divides the string into the tags and puts the result into wt_DataInfo variable.
@param $pStr - string to be printed
@return nothing
*/
function DivideByTags($pStr, $return = false){
$pStr = str_replace("\t", "<ttags>\t</ttags>", $pStr);
$pStr = str_replace(PARAGRAPH_STRING, "<pparg>\t</pparg>", $pStr);
$pStr = str_replace("\r", "", $pStr);
//initialize the String_TAGS class
$sWork = new String_TAGS(5);
//get the string divisions by tags
$this->wt_DataInfo = $sWork->get_tags($pStr);
if ($return) return $this->wt_DataInfo;
}//function DivideByTags($pStr){
/**
This method parses the current text and return an array that contains the text information for
each line that will be drawed.
@param $w - with of the cell
$pStr - String to be parsed
@return $aStrLines - array - contains parsed text information.
*/
function StringToLines($w = 0, $pStr){
//save the current style settings, this will be the default in case of no style is specified
$this->SaveCurrentStyle();
$this->_wt_Reset_Datas();
$this->DivideByTags($pStr);
$last_line = !(count($this->wt_DataInfo) > 0);
$aStrLines = array();
while (!$last_line){
//make a line
$str_data = $this->MakeLine($w);
array_push($aStrLines, $str_data);
//check for last line
$last_line = !(count($this->wt_DataInfo) > 0);
}//while(! $last_line){
//APPLY THE DEFAULT STYLE
$this->ApplyStyle("DEFAULT");
return $aStrLines;
}//function StringToLines
/**
Draws a line returned from MakeLine function
@param $w - with of the cell
$h - height of the cell
$aTxt - array from MakeLine
$align - text align
@return nothing
*/
function PrintLine($w, $h, $aTxt, $align='J'){
if($w==0)
$w=$this->w-$this->rMargin - $this->x;
$wmax = $w; //Maximum width
$total_width = 0; //the total width of all strings
$total_spaces = 0; //the total number of spaces
$nr = count($aTxt);//number of elements
for ($i=0; $i<$nr; $i++){
$total_width += ($aTxt[$i]['width']/1000);
$total_spaces += $aTxt[$i]['spaces'];
}
//default
$w_first = $this->cMargin;
switch($align){
case 'J':
if ($total_spaces > 0)
$extra_space = ($wmax - 2 * $this->cMargin - $total_width) / $total_spaces;
else $extra_space = 0;
break;
case 'L':
break;
case 'C':
$w_first = ($wmax - $total_width) / 2;
break;
case 'R':
$w_first = $wmax - $total_width - $this->cMargin;;
break;
}
// Output the first Cell
if ($w_first != 0){
$this->Cell($w_first, $h, "", 0, 0, "L", 0);
}
$last_width = $wmax - $w_first;
while (list($key, $val) = each($aTxt)) {
$bYPosUsed = false;
//apply current tag style
$this->ApplyStyle($val['tag']);
//If > 0 then we will move the current X Position
$extra_X = 0;
if ($val['ypos'] != 0){
$lastY = $this->y;
$this->y = $lastY - $val['ypos'];
$bYPosUsed = true;
}
//string width
$width = $this->GetStringWidth($val['text']);
$width = $val['width'] / 1000;
if ($width == 0) continue;// No width jump over!!!
if($align=='J'){
if ($val['spaces'] < 1) $temp_X = 0;
else $temp_X = $extra_space;
$this->ws = $temp_X;
$this->_out(sprintf('%.3f Tw', $temp_X * $this->k));
$extra_X = $extra_space * $val['spaces'];//increase the extra_X Space
}else{
$this->ws = 0;
$this->_out('0 Tw');
}//fi
//Output the Text/Links
$this->Cell($width, $h, $val['text'], 0, 0, "C", 0, $val['href']);
$last_width -= $width;//last column width
if ($extra_X != 0){
$this -> SetX($this->GetX() + $extra_X);
$last_width -= $extra_X;
}//fi
if ($bYPosUsed) $this->y = $lastY;
}//while
// Output the Last Cell
if ($last_width != 0){
$this->Cell($last_width, $h, "", 0, 0, "", 0);
}//fi
}//function PrintLine(
}//class
?>

View File

@ -1,39 +0,0 @@
Changelog for FPDI:
v1.1 (2005-04-06, 2005-05-06):
- added some things to free memory when objects are not longer used.
- made FPDI 1.1 compatible with FPDF 1.53
- fixed method getPageBox() in fpdi_pdf_parser.php, which did not work
correct, when the box is an object reference.
v1.1beta (2004-11-12):
- splitted pdf_parser in 2 classes
- Fixed major bugs for PHP Version < 4.3
- Correct fpdi_pdf_parser::hex2String to handle big/little endian hexstrings
- Fixed pdf_parser::pdf_read_value:
- In very few situations it rans into an infinite loop.
- string-matching with escaped parenthesis is fixed
- hex-matching fixed
- included stream-matching and improved speed due using the length value
of the stream-dictionary. (pdf_context::read_stream() is removed)
- Fixes, changes in fpdi-class:
- Added own _out()-Method to disable linebreaks after _out-call
- Added "var $obj_stack;" to class
- Added LZW-Decoder
- Added ASCII85-Decoder
- renamed fpdi_functions to wrapper_functions.php
- Added methods for closing opened PDF-Documents (fclose)
v1.02beta (2004-08-24):
- back to the roots... make FPDI usable with older php versions up 4.1+ ;-)
I used some function wrappers to do this - comments are welcome.
- fixed bug in parser, if it reaches a tab-character.
- include error handling if zlib is not supported.
- fixed a bug in pdf_parser::getPageContent() if content reference is an
array
v1.01 (2004-08-10):
- fixed regex in php_parser::find_xref_table to handle files with
whitespaces before xref position.
- fixed php_parser::rebuildContentStream to run without notice
if error_reporting is set to all and no Filter is given.

View File

@ -1,643 +0,0 @@
<?php
/****************************************************************************
* Software: FPDF class extention *
* Creates Pdf Tables *
* Version: 3.2 *
* Date: 2005/07/20 *
* Author: Bintintan Andrei -- klodoma@ar-sd.net *
* *
* Last Modification: 2006/09/25 *
* *
* License: Free for non-commercial use *
* *
* You may use and modify this software as you wish. *
* PLEASE REPORT ANY BUGS TO THE AUTHOR. THANK YOU *
****************************************************************************/
/**
Modifications:
2006.09.25
- corrected a bug for empty cell texts
- corrected a bug for cell lines aligment error on new page
2006.05.18
- added support for cell splitting if new page ocuurs. FPDF_TABLE::Set_Table_SplitMode(true/false)
sets the splitting mode.
true = normal mode, the cell is splitted where the split ocuurs.
false = if splitting is required then the cell is drawed on the new page. If the cell
Height is bigger then the page height then the cell will be splitted.
- if the header does not have enough space for double it's Height then a new page ocuurs.
*/
require_once('class.multicelltag.php');
//extension class
class FPDF_TABLE extends FPDF_MULTICELLTAG
{
var $tb_columns; //number of columns of the table
var $tb_header_type; //array which contains the header characteristics and texts
var $tb_header_draw; //TRUE or FALSE, the header is drawed or not
var $tb_header_height; //This is the Table Header Maximum Height
var $tb_border_draw; //TRUE or FALSE, the table border is drawed or not
var $tb_data_type; //array which contains the data characteristics (only the characteristics)
var $tb_table_type; //array which contains the table charactersitics
var $table_startx, $table_starty; //the X and Y position where the table starts
var $tb_split_normal; /* << ** special request from Marc Ulfig >>
= false - the split is made only if the cell width does not fit into a page height
= true - the split of a cell will ocuur whenever necesary
*/
var $Draw_Header_Command; //command which determines in the DrawData first the header draw
var $Data_On_Current_Page; // = true/false ... if on current page was some data written
//returns the width of the page in user units
function PageWidth(){
return (int) $this->w-$this->rMargin-$this->lMargin;
}
//constructor(not a real one, but have to call it first)
//we initialize all the variables that we use
function Table_Init($col_no = 0, $header_draw = true, $border_draw = true){
$this->tb_columns = $col_no;
$this->tb_header_type = Array();
$this->tb_header_draw = $header_draw;
$this->tb_header_height = 0;
$this->tb_border_draw = $border_draw;
$this->tb_data_type = Array();
$this->tb_split_normal = true;
$this->tb_type = Array();
$this->table_startx = $this->GetX();
$this->table_starty = $this->GetY();
$this->Draw_Header_Command = false; //by default we don't draw the header
$this->Data_On_Current_Page = false;
}
//Sets the number of columns of the table
function Set_Table_Columns($nr){
$this->tb_columns = $nr;
}
//Sets the number of columns of the table
function Set_Table_SplitMode($pSplit = true){
$this->tb_split_normal = $pSplit;
}
/*
Characteristics constants for Header Type:
EVERY CELL FROM THE TABLE IS A MULTICELL
WIDTH - this is the cell width. This value must be sent only to the HEADER!!!!!!!!
T_COLOR - text color = array(r,g,b);
T_SIZE - text size
T_FONT - text font - font type = "Arial", "Times"
T_ALIGN - text align - "RLCJ"
V_ALIGN - text vertical alignment - "TMB"
T_TYPE - text type (Bold Italic etc)
LN_SPACE - space between lines
BG_COLOR - background color = array(r,g,b);
BRD_COLOR - border color = array(r,g,b);
BRD_SIZE - border size --
BRD_TYPE - border size -- up down, with border without!!! etc
BRD_TYPE_NEW_PAGE - border type on new page - this is user only if specified(<>'')
TEXT - header text -- THIS ALSO BELONGS ONLY TO THE HEADER!!!!
all these setting conform to the settings from the multicell functions!!!!
*/
/*
Function: Set_Header_Type($type_arr) -- sets the array for the header type
type array =
array(
0=>array(
"WIDTH" => 10,
"T_COLOR" => array(120,120,120),
"T_SIZE" => 5,
...
"TEXT" => "Header text 1"
),
1=>array(
...
),
);
where 0,1... are the column number
*/
function Set_Header_Type($type_arr){
$this->tb_header_type = $type_arr;
}
/*
Characteristics constants for Data Type:
EVERY CELL FROM THE TABLE IS A MULTICELL
T_COLOR - text color = array(r,g,b);
T_SIZE - text size
T_FONT - text font - font type = "Arial", "Times"
T_ALIGN - text align - "RLCJ"
V_ALIGN - text vertical alignment - "TMB"
T_TYPE - text type (Bold Italic etc)
LN_SPACE - space between lines
BG_COLOR - background color = array(r,g,b);
BRD_COLOR - border color = array(r,g,b);
BRD_SIZE - border size --
BRD_TYPE - border size -- up down, with border without!!! etc
BRD_TYPE_NEW_PAGE - border type on new page - this is user only if specified(<>'')
all these settings conform to the settings from the multicell functions!!!!
*/
/*
Function: Set_data_Type($type_arr) -- sets the array for the header type
type array =
array(
0=>array(
"T_COLOR" => array(120,120,120),
"T_SIZE" => 5,
...
"BRD_TYPE" => 1
),
1=>array(
...
),
);
where 0,1... are the column number
*/
function Set_Data_Type($type_arr){
$this->tb_data_type = $type_arr;
}
/*
Function Set_Table_Type
$type_arr = array(
"BRD_COLOR"=> array (120,120,120), //border color
"BRD_SIZE"=>5), //border line width
"TB_COLUMNS"=>5), //the number of columns
"TB_ALIGN"=>"L"), //the align of the table, possible values = L, R, C equivalent to Left, Right, Center
'L_MARGIN' => 0// left margin... reference from this->lmargin values
)
*/
function Set_Table_Type($type_arr){
if (isset($type_arr['TB_COLUMNS'])) $this->tb_columns = $type_arr['TB_COLUMNS'];
if (!isset($type_arr['L_MARGIN'])) $type_arr['L_MARGIN']=0;//default values
$this->tb_table_type = $type_arr;
}
//this functiondraws the exterior table border!!!!
function Draw_Table_Border(){
/* "BRD_COLOR"=> array (120,120,120), //border color
"BRD_SIZE"=>5), //border line width
"TB_COLUMNS"=>5), //the number of columns
"TB_ALIGN"=>"L"), //the align of the table, possible values = L, R, C equivalent to Left, Right, Center
*/
if ( ! $this->tb_border_draw ) return;
if ( ! $this->Data_On_Current_Page) return; //there was no data on the current page
//set the colors
list($r, $g, $b) = $this->tb_table_type['BRD_COLOR'];
$this->SetDrawColor($r, $g, $b);
//set the line width
$this->SetLineWidth($this->tb_table_type['BRD_SIZE']);
#echo $this->GetY()-$this->table_starty." ";;
//draw the border
$this->Rect(
$this->table_startx,
$this->table_starty,
$this->Get_Table_Width(),
$this->GetY()-$this->table_starty);
}
function End_Page_Border(){
if (isset($this->tb_table_type['BRD_TYPE_END_PAGE'])){
if (strpos($this->tb_table_type['BRD_TYPE_END_PAGE'], 'B') >= 0){
//set the colors
list($r, $g, $b) = $this->tb_table_type['BRD_COLOR'];
$this->SetDrawColor($r, $g, $b);
//set the line width
$this->SetLineWidth($this->tb_table_type['BRD_SIZE']);
//draw the line
$this->Line($this->table_startx, $this->GetY(), $this->table_startx + $this->Get_Table_Width(), $this->GetY());
}
}
}
//returns the table width in user units
function Get_Table_Width()
{
//calculate the table width
$tb_width = 0;
for ($i=0; $i < $this->tb_columns; $i++){
$tb_width += $this->tb_header_type[$i]['WIDTH'];
}
return $tb_width;
}
//alignes the table to C, L or R(default is L)
function Table_Align(){
//check if the table is aligned
if (isset($this->tb_table_type['TB_ALIGN'])) $tb_align = $this->tb_table_type['TB_ALIGN']; else $tb_align='';
//set the table align
switch($tb_align){
case 'C':
$this->SetX($this->lMargin + $this->tb_table_type['L_MARGIN'] + ($this->PageWidth() - $this->Get_Table_Width())/2);
break;
case 'R':
$this->SetX($this->lMargin + $this->tb_table_type['L_MARGIN'] + ($this->PageWidth() - $this->Get_Table_Width()));
break;
default:
$this->SetX($this->lMargin + $this->tb_table_type['L_MARGIN']);
break;
}//if (isset($this->tb_table_type['TB_ALIGN'])){
}
//Draws the Header
function Draw_Header(){
$this->Draw_Header_Command = true;
$this->tb_header_height = 0;
}
function Init_Table_Position(){
$this->Table_Align();
$this->table_startx = $this->GetX();
$this->table_starty = $this->GetY();
}
/**
Draws the header line from a table.
Call:
@param none
@return nothing
*/
function Draw_Header_(){
$this->tb_header_height = 0;
$this->Init_Table_Position();
$this->Draw_Header_Command = false;
//if the header will be showed
if ( ! $this->tb_header_draw ) return;
$this->DrawTableLine($this->tb_header_type, false, 1, $height);
$this->Data_On_Current_Page = true;
}
/**
Draws a data line from the table.
Call this function after the table initialization, table, header and data types are set
Call:
@param $data - array containing line informations
$header - header will be drawed or not in case of new page
@return nothing
*/
function Draw_Data($data, $header = true, $height){
$this->DrawTableLine($data, $header, 0, $height);
}
/** Draws a data or header line from the table.
Call:
@param $data - array containing line informations
$header - header will be drawed or not in case of new page
$pDataType = 0 - normal line
1 - header line
2 - not implemented
$heigt = Zellenhöhe
@return nothing
*/
function DrawTableLine($data, $header, $pDataType = 0, $height){
$h = $height;
$hm = 0;
$xx = Array();
$tt = Array();
if (!$this->Data_On_Current_Page) $this->Init_Table_Position();
if ($pDataType == 0){//data line
if ($this->Draw_Header_Command){//draw the header
$this->Draw_Header_();
}
}
//maximum Height available on this page
$AvailPageH = $this->PageBreakTrigger - $this->GetY();
if ($AvailPageH <= 0){ //there is no more space on this page
$this->TableAddPage($header);//add a page without header
$this->DrawTableLine($data, $header, $pDataType, $height);//recall this function
return;//exit this function
}
$MaxPageH = $this->PageBreakTrigger - $this->tMargin;
$split = false;
$backdata = $data; //backup data in case of split or recall;
//calculate the maximum height of the cells
for($i=0; $i < $this->tb_columns; $i++)
{
if (!isset($data[$i]['TEXT']) || ($data[$i]['TEXT']=='')) $data[$i]['TEXT'] = " ";
if (!isset($data[$i]['T_FONT'])) $data[$i]['T_FONT'] = $this->tb_data_type[$i]['T_FONT'];
if (!isset($data[$i]['T_TYPE'])) $data[$i]['T_TYPE'] = $this->tb_data_type[$i]['T_TYPE'];
if (!isset($data[$i]['T_SIZE'])) $data[$i]['T_SIZE'] = $this->tb_data_type[$i]['T_SIZE'];
if (!isset($data[$i]['T_COLOR'])) $data[$i]['T_COLOR'] = $this->tb_data_type[$i]['T_COLOR'];
if (!isset($data[$i]['T_ALIGN'])) $data[$i]['T_ALIGN'] = $this->tb_data_type[$i]['T_ALIGN'];
if (!isset($data[$i]['V_ALIGN'])) $data[$i]['V_ALIGN'] = $this->tb_data_type[$i]['V_ALIGN'];
if (!isset($data[$i]['LN_SIZE'])) $data[$i]['LN_SIZE'] = $this->tb_data_type[$i]['LN_SIZE'];
if (!isset($data[$i]['BRD_SIZE'])) $data[$i]['BRD_SIZE'] = $this->tb_data_type[$i]['BRD_SIZE'];
if (!isset($data[$i]['BRD_COLOR'])) $data[$i]['BRD_COLOR'] = $this->tb_data_type[$i]['BRD_COLOR'];
if (!isset($data[$i]['BRD_TYPE'])) $data[$i]['BRD_TYPE'] = $this->tb_data_type[$i]['BRD_TYPE'];
if (!isset($data[$i]['BG_COLOR'])) $data[$i]['BG_COLOR'] = $this->tb_data_type[$i]['BG_COLOR'];
$this->SetFont( $data[$i]['T_FONT'],
$data[$i]['T_TYPE'],
$data[$i]['T_SIZE']);
$data[$i]['CELL_WIDTH'] = $this->tb_header_type[$i]['WIDTH'];
if (isset($data[$i]['COLSPAN'])){
$colspan = (int) $data[$i]['COLSPAN'];//convert to integer
for ($j = 1; $j < $colspan; $j++){
//if there is a colspan, then calculate the number of lines also with the with of the next cell
if (($i + $j) < $this->tb_columns)
$data[$i]['CELL_WIDTH'] += $this->tb_header_type[$i + $j]['WIDTH'];
}
}
$MaxLines = floor($AvailPageH / $data[$i]['LN_SIZE']);//floor this value, must be the lowest possible
if (!isset($data[$i]['TEXT_STRLINES'])) $data[$i]['TEXT_STRLINES'] = $this->StringToLines($data[$i]['CELL_WIDTH'], $data[$i]['TEXT']);
$NoLines = count($data[$i]['TEXT_STRLINES']);
$hm = max($hm, $data[$i]['LN_SIZE'] * $NoLines);//this would be the normal height
if ($NoLines > $MaxLines){
$split = true;
$NoLines = $MaxLines;
$data[$i]['TEXT_SPLITLINES'] = array_splice($data[$i]['TEXT_STRLINES'], $MaxLines);
}
$data[$i]['CELL_LINES'] = $NoLines;
//this is the maximum cell height
$h = max($h, $data[$i]['LN_SIZE'] * $data[$i]['CELL_LINES']);
if (isset($data[$i]['COLSPAN'])){
//just skip the other cells
$i = $i + $colspan - 1;
}
}
if ($pDataType == 0){//data line
if (!$this->tb_split_normal){//split only if the cell height is bigger than a page size
if ($split && (($hm + $this->tb_header_height) < $MaxPageH)){//if the header is splitted and it has space on a page
$this->TableAddPage($header);//add a page without header
$this->DrawTableLine($backdata, $header, 0, $height);//recall this function
return;
}
}
}
if ($pDataType == 1){//header line
$this->tb_header_height = $hm;
if ($split && ($hm < $MaxPageH)){//if the header is splitted and it has space on a page
//new page
$this->TableAddPage(false);//add a page without header
$this->DrawTableLine($backdata, $header, 1, $height);//recall this function
return;
}
if ( ((2*$h) > $AvailPageH) && ((2*$h) < $MaxPageH)){
/*
if the header double size is bigger then the available size
but the double size is smaller than a page size
>>> we draw a new page
**/
$this->TableAddPage(false);//add a page withot header
$this->DrawTableLine($backdata, $header, 1, $height);//recall this function
return;
}
}
$this->Table_Align();
//Draw the cells of the row
for( $i = 0; $i < $this->tb_columns; $i++ )
{
//border size BRD_SIZE
$this->SetLineWidth($data[$i]['BRD_SIZE']);
//fill color = BG_COLOR
list($r, $g, $b) = $data[$i]['BG_COLOR'];
$this->SetFillColor($r, $g, $b);
//Draw Color = BRD_COLOR
list($r, $g, $b) = $data[$i]['BRD_COLOR'];
$this->SetDrawColor($r, $g, $b);
//Text Color = T_COLOR
list($r, $g, $b) = $data[$i]['T_COLOR'];
$this->SetTextColor($r, $g, $b);
//Set the font, font type and size
$this->SetFont( $data[$i]['T_FONT'],
$data[$i]['T_TYPE'],
$data[$i]['T_SIZE']);
//Save the current position
$x=$this->GetX();
$y=$this->GetY();
//print the text
$this->MultiCellTable(
$data[$i]['CELL_WIDTH'],
$data[$i]['LN_SIZE'],
$data[$i]['TEXT_STRLINES'],
$data[$i]['BRD_TYPE'],
$data[$i]['T_ALIGN'],
$data[$i]['V_ALIGN'],
1,
$h - $data[$i]['LN_SIZE'] * $data[$i]['CELL_LINES']
);
//Put the position to the right of the cell
$this->SetXY($x + $data[$i]['CELL_WIDTH'],$y);
//if we have colspan, just ignore the next cells
if (isset($data[$i]['COLSPAN'])){
$i = $i + (int)$data[$i]['COLSPAN'] - 1;
}
}
$this->Data_On_Current_Page = true;
//Go to the next line
$this->Ln($h);
if ($split){
//calculate the maximum height of the cells
for($i=0; $i < $this->tb_columns; $i++){
$backdata[$i]['TEXT_STRLINES'] = isset($data[$i]['TEXT_SPLITLINES']) ? $data[$i]['TEXT_SPLITLINES'] : array();
}
$this->TableAddPage($header);//we have a page split, add a page
if ($pDataType == 1) $header = false;
$this->DrawTableLine($backdata, $header, $pDataType, $height);
}
}//DrawTableLine
/** Adds a new page in the pdf document and initializes the table and the header if necessary.
Call:
@param
$header - boolean - if the header is drawed or not
@return nothing
*/
function TableAddPage($header = true){
$this->Draw_Table_Border();//draw the table border
$this->End_Page_Border();//if there is a special handling for end page??? this is specific for me
$this->AddPage($this->CurOrientation);//add a new page
$this->Data_On_Current_Page = false;
$this->table_startx = $this->GetX();
$this->table_starty = $this->GetY();
if ($header) $this ->Draw_Header();//if we have to draw the header!!!
}//TableAddPage
/** This method allows printing text with line breaks.
It works like a modified MultiCell
Call:
@param
$w - width
$h - line height
$txtData - the outputed text
$border - border(LRTB 0 or 1)
$align - horizontal align 'JLR'
$valign - Vertical Alignment - Top, Middle, Bottom
$fill - fill (1/0)
$vh - vertical adjustment - the Multicell Height will be with this VH Higher!!!!
@return nothing
*/
function MultiCellTable($w, $h, $txtData, $border=0, $align='J', $valign='T', $fill=0, $vh=0)
{
$b1 = '';//border for top cell
$b2 = '';//border for middle cell
$b3 = '';//border for bottom cell
if($border)
{
if($border==1)
{
$border = 'LTRB';
$b1 = 'LRT';//without the bottom
$b2 = 'LR';//without the top and bottom
$b3 = 'LRB';//without the top
}
else
{
$b2='';
if(is_int(strpos($border,'L')))
$b2.='L';
if(is_int(strpos($border,'R')))
$b2.='R';
$b1=is_int(strpos($border,'T')) ? $b2.'T' : $b2;
$b3=is_int(strpos($border,'B')) ? $b2.'B' : $b2;
}
}
switch ($valign){
case 'T':
$wh_T = 0;//Top width
$wh_B = $vh - $wh_T;//Bottom width
break;
case 'M':
$wh_T = $vh/2;
$wh_B = $vh/2;
break;
case 'B':
$wh_T = $vh;
$wh_B = 0;
break;
default://default is TOP ALIGN
$wh_T = 0;//Top width
$wh_B = $vh - $wh_T;//Bottom width
}
//save the X position
$x = $this->x;
/*
if $wh_T == 0 that means that we have no vertical adjustments so I will skip the cells that
draws the top and bottom borders
*/
if ($wh_T != 0)//only when there is a difference
{
//draw the top borders!!!
$this->Cell($w,$wh_T,'',$b1,2,$align,$fill);
}
$b2 = is_int(strpos($border,'T')) && ($wh_T == 0) ? $b2.'T' : $b2;
$b2 = is_int(strpos($border,'B')) && ($wh_B == 0) ? $b2.'B' : $b2;
#$this->MultiCell($w,$h,$txt,$b2,$align,$fill);
$this->MultiCellTag($w, $h, $txtData, $b2, $align, 1, false);
if ($wh_B != 0){//only when there is a difference
//go to the saved X position
//a multicell always runs to the begin of line
$this->x = $x;
$this->Cell($w, $wh_B, '', $b3, 2, $align,$fill);
$this->x=$this->lMargin;
}
}
}//end of pdf_table class
?>

View File

@ -1,661 +0,0 @@
<?php
/****************************************************************************
* Software: FPDF class extension *
* Tag Based Multicell *
* Version: 1.3 *
* Date: 2005/12/08 *
* Author: Bintintan Andrei -- klodoma@ar-sd.net *
* *
* Last Modification: 2006/09/18 *
* *
* *
* License: Free for non-commercial use *
* *
* You may use and modify this software as you wish. *
* PLEASE REPORT ANY BUGS TO THE AUTHOR. THANK YOU *
****************************************************************************/
/**
Modifications:
2006.09.18
- added YPOS parameter to the tab for super/subscript posibility. ypos = '-1' means the relative position to the normal Y.
2006.07.30
- added Paragraph Support(a sort of) - paragraphs can be specified with size='integer value' and PARAGRAPH_STRING character
2006.05.18
- removed the NBLines functions
- added StringToLines function
- modified MultiCellTag to accept as data parameter an array type like the return from StringToLines function
- these modifications does not affect the main class behavior, they are used for further developement and class extensions
*/
require_once('fpdf.php');
require_once("class.string_tags.php");
if (!defined('PARAGRAPH_STRING')) define('PARAGRAPH_STRING', '~~~');
class FPDF_MULTICELLTAG extends FPDF{
var $wt_Current_Tag;
var $wt_FontInfo;//tags font info
var $wt_DataInfo;//parsed string data info
var $wt_DataExtraInfo;//data extra INFO
var $wt_TempData; //some temporary info
function _wt_Reset_Datas(){
$this->wt_Current_Tag = "";
$this->wt_DataInfo = array();
$this->wt_DataExtraInfo = array(
"LAST_LINE_BR" => "", //CURRENT LINE BREAK TYPE
"CURRENT_LINE_BR" => "", //LAST LINE BREAK TYPE
"TAB_WIDTH" => 10 //The tab WIDTH IS IN mm
);
//if another measure unit is used ... calculate your OWN
$this->wt_DataExtraInfo["TAB_WIDTH"] *= (72/25.4) / $this->k;
/*
$this->wt_FontInfo - do not reset, once read ... is OK!!!
*/
}//function _wt_Reset_Datas(){
/**
Sets current tag to specified style
@param $tag - tag name
$family - text font family
$style - text style
$size - text size
$color - text color
@return nothing
*/
function SetStyle($tag,$family,$style,$size,$color)
{
if ($tag == "ttags") $this->Error (">> ttags << is reserved TAG Name.");
if ($tag == "") $this->Error ("Empty TAG Name.");
//use case insensitive tags
$tag=trim(strtoupper($tag));
$this->TagStyle[$tag]['family']=trim($family);
$this->TagStyle[$tag]['style']=trim($style);
$this->TagStyle[$tag]['size']=trim($size);
$this->TagStyle[$tag]['color']=trim($color);
}//function SetStyle
/**
Sets current tag style as the current settings
- if the tag name is not in the tag list then de "DEFAULT" tag is saved.
This includes a fist call of the function SaveCurrentStyle()
@param $tag - tag name
@return nothing
*/
function ApplyStyle($tag){
//use case insensitive tags
$tag=trim(strtoupper($tag));
if ($this->wt_Current_Tag == $tag) return;
if (($tag == "") || (! isset($this->TagStyle[$tag]))) $tag = "DEFAULT";
$this->wt_Current_Tag = $tag;
$style = & $this->TagStyle[$tag];
if (isset($style)){
$this->SetFont($style['family'], $style['style'], $style['size']);
//this is textcolor in FPDF format
if (isset($style['textcolor_fpdf'])) {
$this->TextColor = $style['textcolor_fpdf'];
$this->ColorFlag=($this->FillColor!=$this->TextColor);
}else
{
if ($style['color'] <> ""){//if we have a specified color
$temp = explode(",", $style['color']);
$this->SetTextColor($temp[0], $temp[1], $temp[2]);
}//fi
}
/**/
}//isset
}//function ApplyStyle($tag){
/**
Save the current settings as a tag default style under the DEFAUTLT tag name
@param none
@return nothing
*/
function SaveCurrentStyle(){
//*
$this->TagStyle['DEFAULT']['family'] = $this->FontFamily;;
$this->TagStyle['DEFAULT']['style'] = $this->FontStyle;
$this->TagStyle['DEFAULT']['size'] = $this->FontSizePt;
$this->TagStyle['DEFAULT']['textcolor_fpdf'] = $this->TextColor;
$this->TagStyle['DEFAULT']['color'] = "";
/**/
}//function SaveCurrentStyle
/**
Divides $this->wt_DataInfo and returnes a line from this variable
@param $w - Width of the text
@return $aLine = array() -> contains informations to draw a line
*/
function MakeLine($w){
$aDataInfo = & $this->wt_DataInfo;
$aExtraInfo = & $this->wt_DataExtraInfo;
//last line break >> current line break
$aExtraInfo['LAST_LINE_BR'] = $aExtraInfo['CURRENT_LINE_BR'];
$aExtraInfo['CURRENT_LINE_BR'] = "";
if($w==0)
$w=$this->w - $this->rMargin - $this->x;
$wmax = ($w - 2*$this->cMargin) * 1000;//max width
$aLine = array();//this will contain the result
$return_result = false;//if break and return result
$reset_spaces = false;
$line_width = 0;//line string width
$total_chars = 0;//total characters included in the result string
$space_count = 0;//numer of spaces in the result string
$fw = & $this->wt_FontInfo;//font info array
$last_sepch = ""; //last separator character
foreach ($aDataInfo as $key => $val){
$s = $val['text'];
$tag = &$val['tag'];
$bParagraph = false;
if (($s == "\t") && ($tag == 'pparg')){
$bParagraph = true;
$s = "\t";//place instead a TAB
}
$s_lenght=strlen($s);
$i = 0;//from where is the string remain
$j = 0;//untill where is the string good to copy -- leave this == 1->> copy at least one character!!!
$str = "";
$s_width = 0; //string width
$last_sep = -1; //last separator position
$last_sepwidth = 0;
$last_sepch_width = 0;
$ante_last_sep = -1; //ante last separator position
$spaces = 0;
//parse the whole string
while ($i < $s_lenght){
$c = $s[$i];
if($c == "\n"){//Explicit line break
$i++; //ignore/skip this caracter
$aExtraInfo['CURRENT_LINE_BR'] = "BREAK";
$return_result = true;
$reset_spaces = true;
break;
}
//space
if($c == " "){
$space_count++;//increase the number of spaces
$spaces ++;
}
// Font Width / Size Array
if (!isset($fw[$tag]) || ($tag == "")){
//if this font was not used untill now,
$this->ApplyStyle($tag);
$fw[$tag]['w'] = $this->CurrentFont['cw'];//width
$fw[$tag]['s'] = $this->FontSize;//size
}
$char_width = $fw[$tag]['w'][$c] * $fw[$tag]['s'];
//separators
if(is_int(strpos(" ,.:;",$c))){
$ante_last_sep = $last_sep;
$ante_last_sepch = $last_sepch;
$ante_last_sepwidth = $last_sepwidth;
$ante_last_sepch_width = $last_sepch_width;
$last_sep = $i;//last separator position
$last_sepch = $c;//last separator char
$last_sepch_width = $char_width;//last separator char
$last_sepwidth = $s_width;
}
if ($c == "\t"){//TAB
$c = $s[$i] = "";
$char_width = $aExtraInfo['TAB_WIDTH'] * 1000;
}
if ($bParagraph == true){
$c = $s[$i] = "";
$char_width = $this->wt_TempData['LAST_TAB_REQSIZE']*1000 - $this->wt_TempData['LAST_TAB_SIZE'];
if ($char_width < 0) $char_width = 0;
}
$line_width += $char_width;
if($line_width > $wmax){//Automatic line break
$aExtraInfo['CURRENT_LINE_BR'] = "AUTO";
if ($total_chars == 0) {
/* This MEANS that the $w (width) is lower than a char width...
Put $i and $j to 1 ... otherwise infinite while*/
$i = 1;
$j = 1;
$return_result = true;//YES RETURN THE RESULT!!!
break;
}//fi
if ($last_sep <> -1){
//we have a separator in this tag!!!
//untill now there one separator
if (($last_sepch == $c) && ($last_sepch != " ") && ($ante_last_sep <> -1)){
/* this is the last character and it is a separator, if it is a space the leave it...
Have to jump back to the last separator... even a space
*/
$last_sep = $ante_last_sep;
$last_sepch = $ante_last_sepch;
$last_sepwidth = $ante_last_sepwidth;
}
if ($last_sepch == " "){
$j = $last_sep;//just ignore the last space (it is at end of line)
$i = $last_sep + 1;
if ( $spaces > 0 ) $spaces --;
$s_width = $last_sepwidth;
}else{
$j = $last_sep + 1;
$i = $last_sep + 1;
$s_width = $last_sepwidth + $last_sepch_width;
}
}elseif(count($aLine) > 0){
//we have elements in the last tag!!!!
if ($last_sepch == " "){//the last tag ends with a space, have to remove it
$temp = & $aLine[ count($aLine)-1 ];
if ($temp['text'][strlen($temp['text'])-1] == " "){
$temp['text'] = substr($temp['text'], 0, strlen($temp['text']) - 1);
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
//imediat return from this function
break 2;
}else{
#die("should not be!!!");
}//fi
}//fi
}//fi else
$return_result = true;
break;
}//fi - Auto line break
//increase the string width ONLY when it is added!!!!
$s_width += $char_width;
$i++;
$j = $i;
$total_chars ++;
}//while
$str = substr($s, 0, $j);
$sTmpStr = & $aDataInfo[$key]['text'];
$sTmpStr = substr($sTmpStr, $i, strlen($sTmpStr));
if (($sTmpStr == "") || ($sTmpStr === FALSE))//empty
array_shift($aDataInfo);
if ($val['text'] == $str){
}
if (!isset($val['href'])) $val['href']='';
if (!isset($val['ypos'])) $val['ypos']=0;
//we have a partial result
array_push($aLine, array(
'text' => $str,
'tag' => $val['tag'],
'href' => $val['href'],
'width' => $s_width,
'spaces' => $spaces,
'ypos' => $val['ypos']
));
$this->wt_TempData['LAST_TAB_SIZE'] = $s_width;
$this->wt_TempData['LAST_TAB_REQSIZE'] = (isset($val['size'])) ? $val['size'] : 0;
if ($return_result) break;//break this for
}//foreach
// Check the first and last tag -> if first and last caracters are " " space remove them!!!"
if ((count($aLine) > 0) && ($aExtraInfo['LAST_LINE_BR'] == "AUTO")){
//first tag
$temp = & $aLine[0];
if ( (strlen($temp['text']) > 0) && ($temp['text'][0] == " ")){
$temp['text'] = substr($temp['text'], 1, strlen($temp['text']));
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
}
//last tag
$temp = & $aLine[count($aLine) - 1];
if ( (strlen($temp['text'])>0) && ($temp['text'][strlen($temp['text'])-1] == " ")){
$temp['text'] = substr($temp['text'], 0, strlen($temp['text']) - 1);
$temp['width'] -= $fw[ $temp['tag'] ]['w'][" "] * $fw[ $temp['tag'] ]['s'];
$temp['spaces'] --;
}
}
if ($reset_spaces){//this is used in case of a "Explicit Line Break"
//put all spaces to 0 so in case of "J" align there is no space extension
for ($k=0; $k< count($aLine); $k++) $aLine[$k]['spaces'] = 0;
}//fi
return $aLine;
}//function MakeLine
/**
Draws a MultiCell with TAG recognition parameters
@param $w - with of the cell
$h - height of the cell
$pData - string or data to be printed
$border - border
$align - align
$fill - fill
$pDataIsString - true if $pData is a string
- false if $pData is an array containing lines formatted with $this->MakeLine($w) function
(the false option is used in relation with StringToLines, to avoid double formatting of a string
These paramaters are the same and have the same behavior as at Multicell function
@return nothing
*/
function MultiCellTag($w, $h, $pData, $border=0, $align='J', $fill=0, $pDataIsString = true){
//save the current style settings, this will be the default in case of no style is specified
$this->SaveCurrentStyle();
$this->_wt_Reset_Datas();
//if data is string
if ($pDataIsString === true) $this->DivideByTags($pData);
$b = $b1 = $b2 = $b3 = '';//borders
//save the current X position, we will have to jump back!!!!
$startX = $this -> GetX();
if($border)
{
if($border==1)
{
$border = 'LTRB';
$b1 = 'LRT';//without the bottom
$b2 = 'LR';//without the top and bottom
$b3 = 'LRB';//without the top
}
else
{
$b2='';
if(is_int(strpos($border,'L')))
$b2.='L';
if(is_int(strpos($border,'R')))
$b2.='R';
$b1=is_int(strpos($border,'T')) ? $b2 . 'T' : $b2;
$b3=is_int(strpos($border,'B')) ? $b2 . 'B' : $b2;
}
//used if there is only one line
$b = '';
$b .= is_int(strpos($border,'L')) ? 'L' : "";
$b .= is_int(strpos($border,'R')) ? 'R' : "";
$b .= is_int(strpos($border,'T')) ? 'T' : "";
$b .= is_int(strpos($border,'B')) ? 'B' : "";
}
$first_line = true;
$last_line = false;
if ($pDataIsString === true){
$last_line = !(count($this->wt_DataInfo) > 0);
}else {
$last_line = !(count($pData) > 0);
}
while(!$last_line){
if ($fill == 1){
//fill in the cell at this point and write after the text without filling
$this->Cell($w,$h,"",0,0,"",1);
$this->SetX($startX);//restore the X position
}
if ($pDataIsString === true){
//make a line
$str_data = $this->MakeLine($w);
//check for last line
$last_line = !(count($this->wt_DataInfo) > 0);
}else {
//make a line
$str_data = array_shift($pData);
//check for last line
$last_line = !(count($pData) > 0);
}
if ($last_line && ($align == "J")){//do not Justify the Last Line
$align = "L";
}
//outputs a line
$this->PrintLine($w, $h, $str_data, $align);
//see what border we draw:
if($first_line && $last_line){
//we have only 1 line
$real_brd = $b;
}elseif($first_line){
$real_brd = $b1;
}elseif($last_line){
$real_brd = $b3;
}else{
$real_brd = $b2;
}
if ($first_line) $first_line = false;
//draw the border and jump to the next line
$this->SetX($startX);//restore the X
$this->Cell($w,$h,"",$real_brd,2);
}//while(! $last_line){
//APPLY THE DEFAULT STYLE
$this->ApplyStyle("DEFAULT");
$this->x=$this->lMargin;
}//function MultiCellExt
/**
This method divides the string into the tags and puts the result into wt_DataInfo variable.
@param $pStr - string to be printed
@return nothing
*/
function DivideByTags($pStr, $return = false){
$pStr = str_replace("\t", "<ttags>\t</ttags>", $pStr);
$pStr = str_replace(PARAGRAPH_STRING, "<pparg>\t</pparg>", $pStr);
$pStr = str_replace("\r", "", $pStr);
//initialize the String_TAGS class
$sWork = new String_TAGS(5);
//get the string divisions by tags
$this->wt_DataInfo = $sWork->get_tags($pStr);
if ($return) return $this->wt_DataInfo;
}//function DivideByTags($pStr){
/**
This method parses the current text and return an array that contains the text information for
each line that will be drawed.
@param $w - with of the cell
$pStr - String to be parsed
@return $aStrLines - array - contains parsed text information.
*/
function StringToLines($w = 0, $pStr){
//save the current style settings, this will be the default in case of no style is specified
$this->SaveCurrentStyle();
$this->_wt_Reset_Datas();
$this->DivideByTags($pStr);
$last_line = !(count($this->wt_DataInfo) > 0);
$aStrLines = array();
while (!$last_line){
//make a line
$str_data = $this->MakeLine($w);
array_push($aStrLines, $str_data);
//check for last line
$last_line = !(count($this->wt_DataInfo) > 0);
}//while(! $last_line){
//APPLY THE DEFAULT STYLE
$this->ApplyStyle("DEFAULT");
return $aStrLines;
}//function StringToLines
/**
Draws a line returned from MakeLine function
@param $w - with of the cell
$h - height of the cell
$aTxt - array from MakeLine
$align - text align
@return nothing
*/
function PrintLine($w, $h, $aTxt, $align='J'){
if($w==0)
$w=$this->w-$this->rMargin - $this->x;
$wmax = $w; //Maximum width
$total_width = 0; //the total width of all strings
$total_spaces = 0; //the total number of spaces
$nr = count($aTxt);//number of elements
for ($i=0; $i<$nr; $i++){
$total_width += ($aTxt[$i]['width']/1000);
$total_spaces += $aTxt[$i]['spaces'];
}
//default
$w_first = $this->cMargin;
switch($align){
case 'J':
if ($total_spaces > 0)
$extra_space = ($wmax - 2 * $this->cMargin - $total_width) / $total_spaces;
else $extra_space = 0;
break;
case 'L':
break;
case 'C':
$w_first = ($wmax - $total_width) / 2;
break;
case 'R':
$w_first = $wmax - $total_width - $this->cMargin;;
break;
}
// Output the first Cell
if ($w_first != 0){
$this->Cell($w_first, $h, "", 0, 0, "L", 0);
}
$last_width = $wmax - $w_first;
while (list($key, $val) = each($aTxt)) {
$bYPosUsed = false;
//apply current tag style
$this->ApplyStyle($val['tag']);
//If > 0 then we will move the current X Position
$extra_X = 0;
if ($val['ypos'] != 0){
$lastY = $this->y;
$this->y = $lastY - $val['ypos'];
$bYPosUsed = true;
}
//string width
$width = $this->GetStringWidth($val['text']);
$width = $val['width'] / 1000;
if ($width == 0) continue;// No width jump over!!!
if($align=='J'){
if ($val['spaces'] < 1) $temp_X = 0;
else $temp_X = $extra_space;
$this->ws = $temp_X;
$this->_out(sprintf('%.3f Tw', $temp_X * $this->k));
$extra_X = $extra_space * $val['spaces'];//increase the extra_X Space
}else{
$this->ws = 0;
$this->_out('0 Tw');
}//fi
//Output the Text/Links
$this->Cell($width, $h, $val['text'], 0, 0, "C", 0, $val['href']);
$last_width -= $width;//last column width
if ($extra_X != 0){
$this -> SetX($this->GetX() + $extra_X);
$last_width -= $extra_X;
}//fi
if ($bYPosUsed) $this->y = $lastY;
}//while
// Output the Last Cell
if ($last_width != 0){
$this->Cell($last_width, $h, "", 0, 0, "", 0);
}//fi
}//function PrintLine(
}//class
?>

View File

@ -1,185 +0,0 @@
<?php
/****************************************************************************
* Software: Tag Extraction Class *
* Extracts the tags and corresponding text from a string *
* Version: 1.2 *
* Date: 2005/12/08 *
* Author: Bintintan Andrei -- klodoma@ar-sd.net *
* *
* Last Modification: 2006/07/30 *
* *
* *
* License: Free for non-commercial use *
* *
* You may use and modify this software as you wish. *
* PLEASE REPORT ANY BUGS TO THE AUTHOR. THANK YOU *
****************************************************************************/
/**
Extracts the tags from a string
*/
class String_TAGS{
var $aTAGS;
var $aHREF;
var $iTagMaxElem;
/**
Constructor
*/
function string_tags($p_tagmax = 2){
$this->aTAGS = array();
$this->aHREF = array();
$this->iTagMaxElem = $p_tagmax;
}
/** returnes true if $p_tag is a "<open tag>"
@param $p_tag - tag string
$p_array - tag array;
@return true/false
*/
function OpenTag($p_tag, $p_array){
$aTAGS = & $this->aTAGS;
$aHREF = & $this->aHREF;
$maxElem = & $this->iTagMaxElem;
if (!eregi("^<([a-zA-Z1-9]{1,$maxElem}) *(.*)>$", $p_tag, $reg)) return false;
$p_tag = $reg[1];
$sHREF = array();
if (isset($reg[2])) {
preg_match_all("|([^ ]*)=[\"'](.*)[\"']|U", $reg[2], $out, PREG_PATTERN_ORDER);
for ($i=0; $i<count($out[0]); $i++){
$out[2][$i] = eregi_replace("(\"|')", "", $out[2][$i]);
array_push($sHREF, array($out[1][$i], $out[2][$i]));
}
}
if (in_array($p_tag, $aTAGS)) return false;//tag already opened
if (in_array("</$p_tag>", $p_array)) {
array_push($aTAGS, $p_tag);
array_push($aHREF, $sHREF);
return true;
}
return false;
}
/** returnes true if $p_tag is a "<close tag>"
@param $p_tag - tag string
$p_array - tag array;
@return true/false
*/
function CloseTag($p_tag, $p_array){
$aTAGS = & $this->aTAGS;
$aHREF = & $this->aHREF;
$maxElem = & $this->iTagMaxElem;
if (!ereg("^</([a-zA-Z1-9]{1,$maxElem})>$", $p_tag, $reg)) return false;
$p_tag = $reg[1];
if (in_array("$p_tag", $aTAGS)) {
array_pop($aTAGS);
array_pop($aHREF);
return true;
}
return false;
}
/**
* @desc Expands the paramteres that are kept in Href field
* @param array of parameters
* @return string with concatenated results
*/
function expand_parameters($pResult){
$aTmp = $pResult['params'];
if ($aTmp <> '')
for ($i=0; $i<count($aTmp); $i++){
$pResult[$aTmp[$i][0]] = $aTmp[$i][1];
}
unset($pResult['params']);
return $pResult;
}
/** Optimieses the result of the tag
In the result array there can be strings that are consecutive and have the same tag
This is eliminated
@param $result
@return optimized array
*/
function optimize_tags($result){
if (count($result) == 0) return $result;
$res_result = array();
$current = $result[0];
$i = 1;
while ($i < count($result)){
//if they have the same tag then we concatenate them
if (($current['tag'] == $result[$i]['tag']) && ($current['params'] == $result[$i]['params'])){
$current['text'] .= $result[$i]['text'];
}else{
$current = $this->expand_parameters($current);
array_push($res_result, $current);
$current = $result[$i];
}
$i++;
}
$current = $this->expand_parameters($current);
array_push($res_result, $current);
return $res_result;
}
/** Parses a string and returnes the result
@param $p_str - string
@return array (
array (string1, tag1),
array (string2, tag2)
)
*/
function get_tags($p_str){
$aTAGS = & $this->aTAGS;
$aHREF = & $this->aHREF;
$aTAGS = array();
$result = array();
$reg = preg_split('/(<.*>)/U', $p_str, -1, PREG_SPLIT_DELIM_CAPTURE);
$sTAG = "";
$sHREF = "";
while (list($key, $val) = each($reg)) {
if ($val == "") continue;
if ($this->OpenTag($val,$reg)){
$sTAG = (($temp = end($aTAGS)) != NULL) ? $temp : "";
$sHREF = (($temp = end($aHREF)) != NULL) ? $temp : "";
}elseif($this->CloseTag($val, $reg)){
$sTAG = (($temp = end($aTAGS)) != NULL) ? $temp : "";
$sHREF = (($temp = end($aHREF)) != NULL) ? $temp : "";
}else {
if ($val != "")
array_push($result, array('text'=>$val, 'tag'=>$sTAG, 'params'=>$sHREF));
}
}//while
return $this->optimize_tags($result);
}
}//class String_TAGS{
?>

View File

@ -1,97 +0,0 @@
<?php
//
// FPDI - Version 1.1
//
// Copyright 2004,2005 Setasign - Jan Slabon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
if (!defined("ORD_z"))
define("ORD_z",ord('z'));
if (!defined("ORD_!"))
define("ORD_exclmark", ord('!'));
if (!defined("ORD_u"))
define("ORD_u", ord("u"));
if (!defined("ORD_tilde"))
define("ORD_tilde", ord('~'));
class ASCII85Decode {
function ASCII85Decode(&$fpdi) {
$this->fpdi =& $fpdi;
}
function decode($in) {
$out = "";
$state = 0;
$chn = null;
$l = strlen($in);
for ($k = 0; $k < $l; ++$k) {
$ch = ord($in[$k]) & 0xff;
if ($ch == ORD_tilde) {
break;
}
if (preg_match("/^\s$/",chr($ch))) {
continue;
}
if ($ch == ORD_z && $state == 0) {
$out .= chr(0).chr(0).chr(0).chr(0);
continue;
}
if ($ch < ORD_exclmark || $ch > ORD_u) {
$this->fpdi->error("Illegal character in ASCII85Decode.");
}
$chn[$state++] = $ch - ORD_exclmark;
if ($state == 5) {
$state = 0;
$r = 0;
for ($j = 0; $j < 5; ++$j)
$r = $r * 85 + $chn[$j];
$out .= chr($r >> 24);
$out .= chr($r >> 16);
$out .= chr($r >> 8);
$out .= chr($r);
}
}
$r = 0;
if ($state == 1)
$this->fpdi->error("Illegal length in ASCII85Decode.");
if ($state == 2) {
$r = $chn[0] * 85 * 85 * 85 * 85 + ($chn[1]+1) * 85 * 85 * 85;
$out .= chr($r >> 24);
}
else if ($state == 3) {
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + ($chn[2]+1) * 85 * 85;
$out .= chr($r >> 24);
$out .= chr($r >> 16);
}
else if ($state == 4) {
$r = $chn[0] * 85 * 85 * 85 * 85 + $chn[1] * 85 * 85 * 85 + $chn[2] * 85 * 85 + ($chn[3]+1) * 85 ;
$out .= chr($r >> 24);
$out .= chr($r >> 16);
$out .= chr($r >> 8);
}
return $out;
}
}
?>

View File

@ -1,151 +0,0 @@
<?php
//
// FPDI - Version 1.1
//
// Copyright 2004,2005 Setasign - Jan Slabon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
class LZWDecode {
var $sTable = array();
var $data = null;
var $tIdx;
var $bitsToGet = 9;
var $bytePointer;
var $bitPointer;
var $nextData = 0;
var $nextBits = 0;
var $andTable = array(511, 1023, 2047, 4095);
function LZWDecode(&$fpdi) {
$this->fpdi =& $fpdi;
}
/**
* Method to decode LZW compressed data.
*
* @param string data The compressed data.
*/
function decode(&$data) {
if($data[0] == 0x00 && $data[1] == 0x01) {
$this->fpdi->error("LZW flavour not supported.");
}
$this->initsTable();
$this->data =& $data;
// Initialize pointers
$this->bytePointer = 0;
$this->bitPointer = 0;
$this->nextData = 0;
$this->nextBits = 0;
$oldCode = 0;
$string = "";
$uncompData = "";
while (($code = $this->getNextCode()) != 257) {
if ($code == 256) {
$this->initsTable();
$code = $this->getNextCode();
if ($code == 257) {
break;
}
$uncompData .= $this->sTable[$code];
$oldCode = $code;
} else {
if ($code < $this->tIdx) {
$string = $this->sTable[$code];
$uncompData .= $string;
$this->addStringToTable($this->sTable[$oldCode], $string[0]);
$oldCode = $code;
} else {
$string = $this->sTable[$oldCode];
$string = $string.$string[0];
$uncompData .= $string;
$this->addStringToTable($string);
$oldCode = $code;
}
}
}
return $uncompData;
}
/**
* Initialize the string table.
*/
function initsTable() {
$this->sTable = array();
for ($i = 0; $i < 256; $i++)
$this->sTable[$i] = chr($i);
$this->tIdx = 258;
$this->bitsToGet = 9;
}
/**
* Add a new string to the string table.
*/
function addStringToTable ($oldString, $newString="") {
$string = $oldString.$newString;
// Add this new String to the table
$this->sTable[$this->tIdx++] = $string;
if ($this->tIdx == 511) {
$this->bitsToGet = 10;
} else if ($this->tIdx == 1023) {
$this->bitsToGet = 11;
} else if ($this->tIdx == 2047) {
$this->bitsToGet = 12;
}
}
// Returns the next 9, 10, 11 or 12 bits
function getNextCode() {
if ($this->bytePointer == strlen($this->data))
return 257;
$this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
$this->nextBits += 8;
if ($this->nextBits < $this->bitsToGet) {
$this->nextData = ($this->nextData << 8) | (ord($this->data[$this->bytePointer++]) & 0xff);
$this->nextBits += 8;
}
$code = ($this->nextData >> ($this->nextBits - $this->bitsToGet)) & $this->andTable[$this->bitsToGet-9];
$this->nextBits -= $this->bitsToGet;
return $code;
}
}
?>

View File

@ -1,19 +0,0 @@
<?php
error_reporting (E_ALL);
define('FPDF_FONTPATH','font/');
require('as_utf_class.php');
$pdf= new utfFPDF();
$pagecount = $pdf->setSourceFile("pdfdoc.pdf");
$tplidx = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx,10,10,90);
$pdf->Output("newpdf.pdf","F");
$pdf->closeParsers();
?>

View File

@ -1,69 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>AcceptPageBreak</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>AcceptPageBreak</H2>
<TT><B>boolean</B> AcceptPageBreak()</TT>
<H4 CLASS='st'>Version</H4>
1.4
<H4 CLASS='st'>Description</H4>
Whenever a page break condition is met, the method is called, and the break is issued or not
depending on the returned value. The default implementation returns a value according to the
mode selected by SetAutoPageBreak().
<BR>
This method is called automatically and should not be called directly by the application.
<H4 CLASS='st'>Example</H4>
The method is overriden in an inherited class in order to obtain a 3 column layout:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
class PDF extends FPDF<BR>
{<BR>
var $col=0;<BR>
<BR>
function SetCol($col)<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Move position to a column<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;col=$col;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$x=10+$col*65;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetLeftMargin($x);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetX($x);<BR>
}<BR>
<BR>
function AcceptPageBreak()<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if($this-&gt;col&lt;2)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Go to next column<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetCol($this-&gt;col+1);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetY(10);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;else<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Go back to first column and issue page break<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetCol(0);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return true;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
}<BR>
}<BR>
<BR>
$pdf=new PDF();<BR>
$pdf-&gt;AddPage();<BR>
$pdf-&gt;SetFont('Arial','',12);<BR>
for($i=1;$i&lt;=300;$i++)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$pdf-&gt;Cell(0,5,&quot;Line $i&quot;,0,1);<BR>
$pdf-&gt;Output();
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,61 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>AddFont</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>AddFont</H2>
<TT>AddFont(<B>string</B> family [, <B>string</B> style [, <B>string</B> file]])</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font
definition file first with the makefont.php utility.
<BR>
The definition file (and the font file itself when embedding) must be present in the font directory.
If it is not found, the error "Could not include font definition file" is generated.
<H4 CLASS='st'>Parameters</H4>
<TT><U>family</U></TT>
<BLOCKQUOTE>
Font family. The name can be chosen arbitrarily. If it is a standard family name, it will
override the corresponding font.
</BLOCKQUOTE>
<TT><U>style</U></TT>
<BLOCKQUOTE>
Font style. Possible values are (case insensitive):
<UL>
<LI>empty string: regular
<LI><TT>B</TT>: bold
<LI><TT>I</TT>: italic
<LI><TT>BI</TT> or <TT>IB</TT>: bold italic
</UL>
The default value is regular.
</BLOCKQUOTE>
<TT><U>file</U></TT>
<BLOCKQUOTE>
The font definition file.
<BR>
By default, the name is built from the family and style, in lower case with no space.
</BLOCKQUOTE>
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
$pdf-&gt;AddFont('Comic','I');
</TT>
</TD></TR></TABLE><BR>
is equivalent to:
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
$pdf-&gt;AddFont('Comic','I','comici.php');
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>AddLink</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>AddLink</H2>
<TT><B>int</B> AddLink()</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Creates a new internal link and returns its identifier. An internal link is a clickable area
which directs to another place within the document.
<BR>
The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is
defined with SetLink().
<H4 CLASS='st'>See also</H4>
<A HREF="cell.htm">Cell()</A>,
<A HREF="write.htm">Write()</A>,
<A HREF="image.htm">Image()</A>,
<A HREF="link.htm">Link()</A>,
<A HREF="setlink.htm">SetLink()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,42 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>AddPage</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>AddPage</H2>
<TT>AddPage([<B>string</B> orientation])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Adds a new page to the document. If a page is already present, the Footer() method is called
first to output the footer. Then the page is added, the current position set to the top-left
corner according to the left and top margins, and Header() is called to display the header.
<BR>
The font which was set before calling is automatically restored. There is no need to call
SetFont() again if you want to continue with the same font. The same is true for colors and
line width.
<BR>
The origin of the coordinate system is at the top-left corner and increasing ordinates go
downwards.
<H4 CLASS='st'>Parameters</H4>
<TT><U>orientation</U></TT>
<BLOCKQUOTE>
Page orientation. Possible values are (case insensitive):
<UL>
<LI><TT>P</TT> or <TT>Portrait</TT>
<LI><TT>L</TT> or <TT>Landscape</TT>
</UL>
The default value is the one passed to the constructor.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="fpdf.htm">FPDF()</A>,
<A HREF="header.htm">Header()</A>,
<A HREF="footer.htm">Footer()</A>,
<A HREF="setmargins.htm">SetMargins()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,47 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>AliasNbPages</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>AliasNbPages</H2>
<TT>AliasNbPages([<B>string</B> alias])</TT>
<H4 CLASS='st'>Version</H4>
1.4
<H4 CLASS='st'>Description</H4>
Defines an alias for the total number of pages. It will be substituted as the document is
closed.
<H4 CLASS='st'>Parameters</H4>
<TT><U>alias</U></TT>
<BLOCKQUOTE>
The alias. Default value: <TT>{nb}</TT>.
</BLOCKQUOTE>
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
class PDF extends FPDF<BR>
{<BR>
function Footer()<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Go to 1.5 cm from bottom<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetY(-15);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Select Arial italic 8<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetFont('Arial','I',8);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Print current and total page numbers<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');<BR>
}<BR>
}<BR>
<BR>
$pdf=new PDF();<BR>
$pdf-&gt;AliasNbPages();
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="pageno.htm">PageNo()</A>,
<A HREF="footer.htm">Footer()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,106 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Cell</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Cell</H2>
<TT>Cell(<B>float</B> w [, <B>float</B> h [, <B>string</B> txt [, <B>mixed</B> border [, <B>int</B> ln [, <B>string</B> align [, <B>int</B> fill [, <B>mixed</B> link]]]]]]])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Prints a cell (rectangular area) with optional borders, background color and character string.
The upper-left corner of the cell corresponds to the current position. The text can be aligned
or centered. After the call, the current position moves to the right or to the next line. It is
possible to put a link on the text.
<BR>
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is
done before outputting.
<H4 CLASS='st'>Parameters</H4>
<TT><U>w</U></TT>
<BLOCKQUOTE>
Cell width. If <TT>0</TT>, the cell extends up to the right margin.
</BLOCKQUOTE>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Cell height.
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<TT><U>txt</U></TT>
<BLOCKQUOTE>
String to print.
Default value: empty string.
</BLOCKQUOTE>
<TT><U>border</U></TT>
<BLOCKQUOTE>
Indicates if borders must be drawn around the cell. The value can be either a number:
<UL>
<LI><TT>0</TT>: no border
<LI><TT>1</TT>: frame
</UL>
or a string containing some or all of the following characters (in any order):
<UL>
<LI><TT>L</TT>: left
<LI><TT>T</TT>: top
<LI><TT>R</TT>: right
<LI><TT>B</TT>: bottom
</UL>
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<TT><U>ln</U></TT>
<BLOCKQUOTE>
Indicates where the current position should go after the call. Possible values are:
<UL>
<LI><TT>0</TT>: to the right
<LI><TT>1</TT>: to the beginning of the next line
<LI><TT>2</TT>: below
</UL>
Putting <TT>1</TT> is equivalent to putting <TT>0</TT> and calling Ln() just after.
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<TT><U>align</U></TT>
<BLOCKQUOTE>
Allows to center or align the text. Possible values are:
<UL>
<LI><TT>L</TT> or empty string: left align (default value)
<LI><TT>C</TT>: center
<LI><TT>R</TT>: right align
</UL>
</BLOCKQUOTE>
<TT><U>fill</U></TT>
<BLOCKQUOTE>
Indicates if the cell background must be painted (<TT>1</TT>) or transparent (<TT>0</TT>).
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<TT><U>link</U></TT>
<BLOCKQUOTE>
URL or identifier returned by AddLink().
</BLOCKQUOTE>
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
//Set font<BR>
$pdf-&gt;SetFont('Arial','B',16);<BR>
//Move to 8 cm to the right<BR>
$pdf-&gt;Cell(80);<BR>
//Centered text in a framed 20*10 mm cell and line break<BR>
$pdf-&gt;Cell(20,10,'Title',1,1,'C');
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>,
<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
<A HREF="setfillcolor.htm">SetFillColor()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="setlinewidth.htm">SetLineWidth()</A>,
<A HREF="addlink.htm">AddLink()</A>,
<A HREF="ln.htm">Ln()</A>,
<A HREF="multicell.htm">MultiCell()</A>,
<A HREF="write.htm">Write()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,23 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Close</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Close</H2>
<TT>Close()</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Terminates the PDF document. It is not necessary to call this method explicitly because Output()
does it automatically.
<BR>
If the document contains no page, AddPage() is called to prevent from getting an invalid document.
<H4 CLASS='st'>See also</H4>
<A HREF="output.htm">Output()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,25 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Error</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Error</H2>
<TT>Error(<B>string</B> msg)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
This method is automatically called in case of fatal error; it simply outputs the message
and halts the execution. An inherited class may override it to customize the error handling
but should always halt the script, or the resulting document would probably be invalid.
<H4 CLASS='st'>Parameters</H4>
<TT><U>msg</U></TT>
<BLOCKQUOTE>
The error message.
</BLOCKQUOTE>
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,39 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Footer</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Footer</H2>
<TT>Footer()</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
This method is used to render the page footer. It is automatically called by AddPage() and
Close() and should not be called directly by the application. The implementation in FPDF is
empty, so you have to subclass it and override the method if you want a specific processing.
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
class PDF extends FPDF<BR>
{<BR>
function Footer()<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Go to 1.5 cm from bottom<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetY(-15);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Select Arial italic 8<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetFont('Arial','I',8);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Print centered page number<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo(),0,0,'C');<BR>
}<BR>
}
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="header.htm">Header()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,57 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>FPDF</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>FPDF</H2>
<TT>FPDF([<B>string</B> orientation [, <B>string</B> unit [, <B>mixed</B> format]]])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
This is the class constructor. It allows to set up the page format, the orientation and the
measure unit used in all the methods (except for the font sizes).
<H4 CLASS='st'>Parameters</H4>
<TT><U>orientation</U></TT>
<BLOCKQUOTE>
Default page orientation. Possible values are (case insensitive):
<UL>
<LI><TT>P</TT> or <TT>Portrait</TT>
<LI><TT>L</TT> or <TT>Landscape</TT>
</UL>
Default value is <TT>P</TT>.
</BLOCKQUOTE>
<TT><U>unit</U></TT>
<BLOCKQUOTE>
User measure unit. Possible values are:
<UL>
<LI><TT>pt</TT>: point
<LI><TT>mm</TT>: millimeter
<LI><TT>cm</TT>: centimeter
<LI><TT>in</TT>: inch
</UL>
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This
is a very common unit in typography; font sizes are expressed in that unit.
<BR>
<BR>
Default value is <TT>mm</TT>.
</BLOCKQUOTE>
<TT><U>format</U></TT>
<BLOCKQUOTE>
The format used for pages. It can be either one of the following values (case insensitive):
<UL>
<LI><TT>A3</TT>
<LI><TT>A4</TT>
<LI><TT>A5</TT>
<LI><TT>Letter</TT>
<LI><TT>Legal</TT>
</UL>
or a custom format in the form of a two-element array containing the width and the height
(expressed in the unit given by <TT>unit</TT>).
</BLOCKQUOTE>
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,23 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>GetStringWidth</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>GetStringWidth</H2>
<TT><B>float</B> GetStringWidth(<B>string</B> s)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Returns the length of a string in user unit. A font must be selected.
<H4 CLASS='st'>Parameters</H4>
<TT><U>s</U></TT>
<BLOCKQUOTE>
The string whose length is to be computed.
</BLOCKQUOTE>
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,22 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>GetX</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>GetX</H2>
<TT><B>float</B> GetX()</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Returns the abscissa of the current position.
<H4 CLASS='st'>See also</H4>
<A HREF="setx.htm">SetX()</A>,
<A HREF="gety.htm">GetY()</A>,
<A HREF="sety.htm">SetY()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,22 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>GetY</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>GetY</H2>
<TT><B>float</B> GetY()</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Returns the ordinate of the current position.
<H4 CLASS='st'>See also</H4>
<A HREF="sety.htm">SetY()</A>,
<A HREF="getx.htm">GetX()</A>,
<A HREF="setx.htm">SetX()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,41 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Header</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Header</H2>
<TT>Header()</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
This method is used to render the page header. It is automatically called by AddPage() and
should not be called directly by the application. The implementation in FPDF is empty, so
you have to subclass it and override the method if you want a specific processing.
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
class PDF extends FPDF<BR>
{<BR>
function Header()<BR>
{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Select Arial bold 15<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetFont('Arial','B',15);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Move to the right<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(80);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Framed title<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(30,10,'Title',1,0,'C');<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Line break<BR>
&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Ln(20);<BR>
}<BR>
}
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="footer.htm">Footer()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,88 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Image</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Image</H2>
<TT>Image(<B>string</B> file, <B>float</B> x, <B>float</B> y [, <B>float</B> w [, <B>float</B> h [, <B>string</B> type [, <B>mixed</B> link]]]])</TT>
<H4 CLASS='st'>Version</H4>
1.1
<H4 CLASS='st'>Description</H4>
Puts an image in the page. The upper-left corner must be given. The dimensions can be specified
in different ways:
<UL>
<LI>explicit width and height (expressed in user unit)
<LI>one explicit dimension, the other being calculated automatically in order to keep the original
proportions
<LI>no explicit dimension, in which case the image is put at 72 dpi
</UL>
Supported formats are JPEG and PNG.
<BR>
<BR>
For JPEG, all flavors are allowed:
<UL>
<LI>gray scales
<LI>true colors (24 bits)
<LI>CMYK (32 bits)
</UL>
For PNG, are allowed:
<UL>
<LI>gray scales on at most 8 bits (256 levels)
<LI>indexed colors
<LI>true colors (24 bits)
</UL>
but are not supported:
<UL>
<LI>Interlacing
<LI>Alpha channel
</UL>
If a transparent color is defined, it will be taken into account (but will be only interpreted
by Acrobat 4 and above).
<BR>
The format can be specified explicitly or inferred from the file extension.
<BR>
It is possible to put a link on the image.
<BR>
<BR>
Remark: if an image is used several times, only one copy will be embedded in the file.
<H4 CLASS='st'>Parameters</H4>
<TT><U>file</U></TT>
<BLOCKQUOTE>
Name of the file containing the image.
</BLOCKQUOTE>
<TT><U>x</U></TT>
<BLOCKQUOTE>
Abscissa of the upper-left corner.
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
Ordinate of the upper-left corner.
</BLOCKQUOTE>
<TT><U>w</U></TT>
<BLOCKQUOTE>
Width of the image in the page. If not specified or equal to zero, it is automatically
calculated.
</BLOCKQUOTE>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Height of the image in the page. If not specified or equal to zero, it is automatically
calculated.
</BLOCKQUOTE>
<TT><U>type</U></TT>
<BLOCKQUOTE>
Image format. Possible values are (case insensitive): <TT>JPG</TT>, <TT>JPEG</TT>, <TT>PNG</TT>.
If not specified, the type is inferred from the file extension.
</BLOCKQUOTE>
<TT><U>link</U></TT>
<BLOCKQUOTE>
URL or identifier returned by AddLink().
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="addlink.htm">AddLink()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,57 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>FPDF 1.53 Reference Manual</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>FPDF 1.53 Reference Manual</H2>
<A HREF="acceptpagebreak.htm">AcceptPageBreak</A> - accept or not automatic page break<BR>
<A HREF="addfont.htm">AddFont</A> - add a new font<BR>
<A HREF="addlink.htm">AddLink</A> - create an internal link<BR>
<A HREF="addpage.htm">AddPage</A> - add a new page<BR>
<A HREF="aliasnbpages.htm">AliasNbPages</A> - define an alias for number of pages<BR>
<A HREF="cell.htm">Cell</A> - print a cell<BR>
<A HREF="close.htm">Close</A> - terminate the document<BR>
<A HREF="error.htm">Error</A> - fatal error<BR>
<A HREF="footer.htm">Footer</A> - page footer<BR>
<A HREF="fpdf.htm">FPDF</A> - constructor<BR>
<A HREF="getstringwidth.htm">GetStringWidth</A> - compute string length<BR>
<A HREF="getx.htm">GetX</A> - get current x position<BR>
<A HREF="gety.htm">GetY</A> - get current y position<BR>
<A HREF="header.htm">Header</A> - page header<BR>
<A HREF="image.htm">Image</A> - output an image<BR>
<A HREF="line.htm">Line</A> - draw a line<BR>
<A HREF="link.htm">Link</A> - put a link<BR>
<A HREF="ln.htm">Ln</A> - line break<BR>
<A HREF="multicell.htm">MultiCell</A> - print text with line breaks<BR>
<A HREF="output.htm">Output</A> - save or send the document<BR>
<A HREF="pageno.htm">PageNo</A> - page number<BR>
<A HREF="rect.htm">Rect</A> - draw a rectangle<BR>
<A HREF="setauthor.htm">SetAuthor</A> - set the document author<BR>
<A HREF="setautopagebreak.htm">SetAutoPageBreak</A> - set the automatic page breaking mode<BR>
<A HREF="setcompression.htm">SetCompression</A> - turn compression on or off<BR>
<A HREF="setcreator.htm">SetCreator</A> - set document creator<BR>
<A HREF="setdisplaymode.htm">SetDisplayMode</A> - set display mode<BR>
<A HREF="setdrawcolor.htm">SetDrawColor</A> - set drawing color<BR>
<A HREF="setfillcolor.htm">SetFillColor</A> - set filling color<BR>
<A HREF="setfont.htm">SetFont</A> - set font<BR>
<A HREF="setfontsize.htm">SetFontSize</A> - set font size<BR>
<A HREF="setkeywords.htm">SetKeywords</A> - associate keywords with document<BR>
<A HREF="setleftmargin.htm">SetLeftMargin</A> - set left margin<BR>
<A HREF="setlinewidth.htm">SetLineWidth</A> - set line width<BR>
<A HREF="setlink.htm">SetLink</A> - set internal link destination<BR>
<A HREF="setmargins.htm">SetMargins</A> - set margins<BR>
<A HREF="setrightmargin.htm">SetRightMargin</A> - set right margin<BR>
<A HREF="setsubject.htm">SetSubject</A> - set document subject<BR>
<A HREF="settextcolor.htm">SetTextColor</A> - set text color<BR>
<A HREF="settitle.htm">SetTitle</A> - set document title<BR>
<A HREF="settopmargin.htm">SetTopMargin</A> - set top margin<BR>
<A HREF="setx.htm">SetX</A> - set current x position<BR>
<A HREF="setxy.htm">SetXY</A> - set current x and y positions<BR>
<A HREF="sety.htm">SetY</A> - set current y position<BR>
<A HREF="text.htm">Text</A> - print a string<BR>
<A HREF="write.htm">Write</A> - print flowing text<BR>
</BODY>
</HTML>

View File

@ -1,38 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Line</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Line</H2>
<TT>Line(<B>float</B> x1, <B>float</B> y1, <B>float</B> x2, <B>float</B> y2)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Draws a line between two points.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x1</U></TT>
<BLOCKQUOTE>
Abscissa of first point.
</BLOCKQUOTE>
<TT><U>y1</U></TT>
<BLOCKQUOTE>
Ordinate of first point.
</BLOCKQUOTE>
<TT><U>x2</U></TT>
<BLOCKQUOTE>
Abscissa of second point.
</BLOCKQUOTE>
<TT><U>y2</U></TT>
<BLOCKQUOTE>
Ordinate of second point.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setlinewidth.htm">SetLineWidth()</A>,
<A HREF="setdrawcolor.htm">SetDrawColor()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,46 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Link</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Link</H2>
<TT>Link(<B>float</B> x, <B>float</B> y, <B>float</B> w, <B>float</B> h, <B>mixed</B> link)</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(),
Write() or Image(), but this method can be useful for instance to define a clickable area inside
an image.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x</U></TT>
<BLOCKQUOTE>
Abscissa of the upper-left corner of the rectangle.
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
Ordinate of the upper-left corner of the rectangle.
</BLOCKQUOTE>
<TT><U>w</U></TT>
<BLOCKQUOTE>
Width of the rectangle.
</BLOCKQUOTE>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Height of the rectangle.
</BLOCKQUOTE>
<TT><U>link</U></TT>
<BLOCKQUOTE>
URL or identifier returned by AddLink().
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="addlink.htm">AddLink()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="write.htm">Write()</A>,
<A HREF="image.htm">Image()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Ln</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Ln</H2>
<TT>Ln([<B>float</B> h])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Performs a line break. The current abscissa goes back to the left margin and the ordinate
increases by the amount passed in parameter.
<H4 CLASS='st'>Parameters</H4>
<TT><U>h</U></TT>
<BLOCKQUOTE>
The height of the break.
<BR>
By default, the value equals the height of the last printed cell.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="cell.htm">Cell()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,76 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>MultiCell</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>MultiCell</H2>
<TT>MultiCell(<B>float</B> w, <B>float</B> h, <B>string</B> txt [, <B>mixed</B> border [, <B>string</B> align [, <B>int</B> fill]]])</TT>
<H4 CLASS='st'>Version</H4>
1.3
<H4 CLASS='st'>Description</H4>
This method allows printing text with line breaks. They can be automatic (as soon as the
text reaches the right border of the cell) or explicit (via the \n character). As many cells
as necessary are output, one below the other.
<BR>
Text can be aligned, centered or justified. The cell block can be framed and the background
painted.
<H4 CLASS='st'>Parameters</H4>
<TT><U>w</U></TT>
<BLOCKQUOTE>
Width of cells. If <TT>0</TT>, they extend up to the right margin of the page.
</BLOCKQUOTE>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Height of cells.
</BLOCKQUOTE>
<TT><U>txt</U></TT>
<BLOCKQUOTE>
String to print.
</BLOCKQUOTE>
<TT><U>border</U></TT>
<BLOCKQUOTE>
Indicates if borders must be drawn around the cell block. The value can be either a number:
<UL>
<LI><TT>0</TT>: no border
<LI><TT>1</TT>: frame
</UL>
or a string containing some or all of the following characters (in any order):
<UL>
<LI><TT>L</TT>: left
<LI><TT>T</TT>: top
<LI><TT>R</TT>: right
<LI><TT>B</TT>: bottom
</UL>
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<TT><U>align</U></TT>
<BLOCKQUOTE>
Sets the text alignment. Possible values are:
<UL>
<LI><TT>L</TT>: left alignment
<LI><TT>C</TT>: center
<LI><TT>R</TT>: right alignment
<LI><TT>J</TT>: justification (default value)
</UL>
</BLOCKQUOTE>
<TT><U>fill</U></TT>
<BLOCKQUOTE>
Indicates if the cell background must be painted (<TT>1</TT>) or transparent (<TT>0</TT>).
Default value: <TT>0</TT>.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>,
<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
<A HREF="setfillcolor.htm">SetFillColor()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="setlinewidth.htm">SetLineWidth()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="write.htm">Write()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,47 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Output</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Output</H2>
<TT><B>string</B> Output([<B>string</B> name [, <B>string</B> dest]])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<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.
<BR>
The method first calls Close() if necessary to terminate the document.
<H4 CLASS='st'>Parameters</H4>
<TT><U>name</U></TT>
<BLOCKQUOTE>
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>.
</BLOCKQUOTE>
<TT><U>dest</U></TT>
<BLOCKQUOTE>
Destination where to send the document. It can take one of the following values:
<UL>
<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
<TT>name</TT>.
<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.
</UL>
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>
<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>).
</BLOCKQUOTE>
<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>
</BODY>
</HTML>

View File

@ -1,20 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>PageNo</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>PageNo</H2>
<TT><B>int</B> PageNo()</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Returns the current page number.
<H4 CLASS='st'>See also</H4>
<A HREF="aliasnbpages.htm">AliasNbPages()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,48 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Rect</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Rect</H2>
<TT>Rect(<B>float</B> x, <B>float</B> y, <B>float</B> w, <B>float</B> h [, <B>string</B> style])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x</U></TT>
<BLOCKQUOTE>
Abscissa of upper-left corner.
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
Ordinate of upper-left corner.
</BLOCKQUOTE>
<TT><U>w</U></TT>
<BLOCKQUOTE>
Width.
</BLOCKQUOTE>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Height.
</BLOCKQUOTE>
<TT><U>style</U></TT>
<BLOCKQUOTE>
Style of rendering. Possible values are:
<UL>
<LI><TT>D</TT> or empty string: draw. This is the default value.
<LI><TT>F</TT>: fill
<LI><TT>DF</TT> or <TT>FD</TT>: draw and fill
</UL>
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setlinewidth.htm">SetLineWidth()</A>,
<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
<A HREF="setfillcolor.htm">SetFillColor()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetAuthor</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetAuthor</H2>
<TT>SetAuthor(<B>string</B> author)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the author of the document.
<H4 CLASS='st'>Parameters</H4>
<TT><U>author</U></TT>
<BLOCKQUOTE>
The name of the author.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setcreator.htm">SetCreator()</A>,
<A HREF="setkeywords.htm">SetKeywords()</A>,
<A HREF="setsubject.htm">SetSubject()</A>,
<A HREF="settitle.htm">SetTitle()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,33 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetAutoPageBreak</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetAutoPageBreak</H2>
<TT>SetAutoPageBreak(<B>boolean</B> auto [, <B>float</B> margin])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Enables or disables the automatic page breaking mode. When enabling, the second parameter is
the distance from the bottom of the page that defines the triggering limit. By default, the
mode is on and the margin is 2 cm.
<H4 CLASS='st'>Parameters</H4>
<TT><U>auto</U></TT>
<BLOCKQUOTE>
Boolean indicating if mode should be on or off.
</BLOCKQUOTE>
<TT><U>margin</U></TT>
<BLOCKQUOTE>
Distance from the bottom of the page.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>,
<A HREF="acceptpagebreak.htm">AcceptPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,31 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetCompression</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetCompression</H2>
<TT>SetCompression(<B>boolean</B> compress)</TT>
<H4 CLASS='st'>Version</H4>
1.4
<H4 CLASS='st'>Description</H4>
Activates or deactivates page compression. When activated, the internal representation of
each page is compressed, which leads to a compression ratio of about 2 for the resulting
document.
<BR>
Compression is on by default.
<BR>
<BR>
<B>Note: </B>the Zlib extension is required for this feature. If not present, compression
will be turned off.
<H4 CLASS='st'>Parameters</H4>
<TT><U>compress</U></TT>
<BLOCKQUOTE>
Boolean indicating if compression must be enabled.
</BLOCKQUOTE>
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,29 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetCreator</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetCreator</H2>
<TT>SetCreator(<B>string</B> creator)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the creator of the document. This is typically the name of the application that
generates the PDF.
<H4 CLASS='st'>Parameters</H4>
<TT><U>creator</U></TT>
<BLOCKQUOTE>
The name of the creator.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setauthor.htm">SetAuthor()</A>,
<A HREF="setkeywords.htm">SetKeywords()</A>,
<A HREF="setsubject.htm">SetSubject()</A>,
<A HREF="settitle.htm">SetTitle()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,47 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetDisplayMode</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetDisplayMode</H2>
<TT>SetDisplayMode(<B>mixed</B> zoom [, <B>string</B> layout])</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be
displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a
specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat).
The page layout can be specified too: single at once, continuous display, two columns or viewer
default.
<BR>
By default, documents use the full width mode with continuous display.
<H4 CLASS='st'>Parameters</H4>
<TT><U>zoom</U></TT>
<BLOCKQUOTE>
The zoom to use. It can be one of the following string values:
<UL>
<LI><TT>fullpage</TT>: displays the entire page on screen
<LI><TT>fullwidth</TT>: uses maximum width of window
<LI><TT>real</TT>: uses real size (equivalent to 100% zoom)
<LI><TT>default</TT>: uses viewer default mode
</UL>
or a number indicating the zooming factor to use.
</BLOCKQUOTE>
<TT><U>layout</U></TT>
<BLOCKQUOTE>
The page layout. Possible values are:
<UL>
<LI><TT>single</TT>: displays one page at once
<LI><TT>continuous</TT>: displays pages continuously
<LI><TT>two</TT>: displays two pages on two columns
<LI><TT>default</TT>: uses viewer default mode
</UL>
Default value is <TT>continuous</TT>.
</BLOCKQUOTE>
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,41 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetDrawColor</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetDrawColor</H2>
<TT>SetDrawColor(<B>int</B> r [, <B>int</B> g, <B>int</B> b])</TT>
<H4 CLASS='st'>Version</H4>
1.3
<H4 CLASS='st'>Description</H4>
Defines the color used for all drawing operations (lines, rectangles and cell borders). It
can be expressed in RGB components or gray scale. The method can be called before the first
page is created and the value is retained from page to page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>r</U></TT>
<BLOCKQUOTE>
If <TT>g</TT> et <TT>b</TT> are given, red component; if not, indicates the gray level.
Value between 0 and 255.
</BLOCKQUOTE>
<TT><U>g</U></TT>
<BLOCKQUOTE>
Green component (between 0 and 255).
</BLOCKQUOTE>
<TT><U>b</U></TT>
<BLOCKQUOTE>
Blue component (between 0 and 255).
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setfillcolor.htm">SetFillColor()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="line.htm">Line()</A>,
<A HREF="rect.htm">Rect()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,40 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetFillColor</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetFillColor</H2>
<TT>SetFillColor(<B>int</B> r [, <B>int</B> g, <B>int</B> b])</TT>
<H4 CLASS='st'>Version</H4>
1.3
<H4 CLASS='st'>Description</H4>
Defines the color used for all filling operations (filled rectangles and cell backgrounds).
It can be expressed in RGB components or gray scale. The method can be called before the first
page is created and the value is retained from page to page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>r</U></TT>
<BLOCKQUOTE>
If <TT>g</TT> and <TT>b</TT> are given, red component; if not, indicates the gray level.
Value between 0 and 255.
</BLOCKQUOTE>
<TT><U>g</U></TT>
<BLOCKQUOTE>
Green component (between 0 and 255).
</BLOCKQUOTE>
<TT><U>b</U></TT>
<BLOCKQUOTE>
Blue component (between 0 and 255).
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="rect.htm">Rect()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,98 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetFont</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetFont</H2>
<TT>SetFont(<B>string</B> family [, <B>string</B> style [, <B>float</B> size]])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Sets the font used to print character strings. It is mandatory to call this method
at least once before printing text or the resulting document would not be valid.
<BR>
The font can be either a standard one or a font added via the AddFont() method. Standard fonts
use Windows encoding cp1252 (Western Europe).
<BR>
The method can be called before the first page is created and the font is retained from page
to page.
<BR>
If you just wish to change the current font size, it is simpler to call SetFontSize().
<BR>
<BR>
<B>Note:</B> the font metric files must be accessible. They are searched successively in:
<UL>
<LI>The directory defined by the <TT>FPDF_FONTPATH</TT> constant (if this constant is defined)
<LI>The <TT>font</TT> directory located in the directory containing <TT>fpdf.php</TT> (if it exists)
<LI>The directories accessible through <TT>include()</TT>
</UL>
Example defining <TT>FPDF_FONTPATH</TT> (note the mandatory trailing slash):
<BR>
<BR>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
define('FPDF_FONTPATH','/home/www/font/');<BR>
require('fpdf.php');
</TT>
</TD></TR></TABLE><BR>
If the file corresponding to the requested font is not found, the error "Could not include
font metric file" is issued.
<H4 CLASS='st'>Parameters</H4>
<TT><U>family</U></TT>
<BLOCKQUOTE>
Family font. It can be either a name defined by AddFont() or one of the standard families (case
insensitive):
<UL>
<LI><TT>Courier</TT> (fixed-width)
<LI><TT>Helvetica</TT> or <TT>Arial</TT> (synonymous; sans serif)
<LI><TT>Times</TT> (serif)
<LI><TT>Symbol</TT> (symbolic)
<LI><TT>ZapfDingbats</TT> (symbolic)
</UL>
It is also possible to pass an empty string. In that case, the current family is retained.
</BLOCKQUOTE>
<TT><U>style</U></TT>
<BLOCKQUOTE>
Font style. Possible values are (case insensitive):
<UL>
<LI>empty string: regular
<LI><TT>B</TT>: bold
<LI><TT>I</TT>: italic
<LI><TT>U</TT>: underline
</UL>
or any combination. The default value is regular.
Bold and italic styles do not apply to <TT>Symbol</TT> and <TT>ZapfDingbats</TT>.
</BLOCKQUOTE>
<TT><U>size</U></TT>
<BLOCKQUOTE>
Font size in points.
<BR>
The default value is the current size. If no size has been specified since the beginning of
the document, the value taken is 12.
</BLOCKQUOTE>
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
//Times regular 12<BR>
$pdf-&gt;SetFont('Times');<BR>
//Arial bold 14<BR>
$pdf-&gt;SetFont('Arial','B',14);<BR>
//Removes bold<BR>
$pdf-&gt;SetFont('');<BR>
//Times bold, italic and underlined 14<BR>
$pdf-&gt;SetFont('Times','BIU');
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="addfont.htm">AddFont()</A>,
<A HREF="setfontsize.htm">SetFontSize()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>,
<A HREF="write.htm">Write()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,25 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetFontSize</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetFontSize</H2>
<TT>SetFontSize(<B>float</B> size)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Defines the size of the current font.
<H4 CLASS='st'>Parameters</H4>
<TT><U>size</U></TT>
<BLOCKQUOTE>
The size (in points).
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetKeywords</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetKeywords</H2>
<TT>SetKeywords(<B>string</B> keywords)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
<H4 CLASS='st'>Parameters</H4>
<TT><U>keywords</U></TT>
<BLOCKQUOTE>
The list of keywords.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setauthor.htm">SetAuthor()</A>,
<A HREF="setcreator.htm">SetCreator()</A>,
<A HREF="setsubject.htm">SetSubject()</A>,
<A HREF="settitle.htm">SetTitle()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,30 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetLeftMargin</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetLeftMargin</H2>
<TT>SetLeftMargin(<B>float</B> margin)</TT>
<H4 CLASS='st'>Version</H4>
1.4
<H4 CLASS='st'>Description</H4>
Defines the left margin. The method can be called before creating the first page.
<BR>
If the current abscissa gets out of page, it is brought back to the margin.
<H4 CLASS='st'>Parameters</H4>
<TT><U>margin</U></TT>
<BLOCKQUOTE>
The margin.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="settopmargin.htm">SetTopMargin()</A>,
<A HREF="setrightmargin.htm">SetRightMargin()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>,
<A HREF="setmargins.htm">SetMargins()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,29 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetLineWidth</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetLineWidth</H2>
<TT>SetLineWidth(<B>float</B> width)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Defines the line width. By default, the value equals 0.2 mm. The method can be called before
the first page is created and the value is retained from page to page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>width</U></TT>
<BLOCKQUOTE>
The width.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="line.htm">Line()</A>,
<A HREF="rect.htm">Rect()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,34 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetLink</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetLink</H2>
<TT>SetLink(<B>int</B> link [, <B>float</B> y [, <B>int</B> page]])</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Defines the page and position a link points to.
<H4 CLASS='st'>Parameters</H4>
<TT><U>link</U></TT>
<BLOCKQUOTE>
The link identifier returned by AddLink().
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
Ordinate of target position; <TT>-1</TT> indicates the current position.
The default value is <TT>0</TT> (top of page).
</BLOCKQUOTE>
<TT><U>page</U></TT>
<BLOCKQUOTE>
Number of target page; <TT>-1</TT> indicates the current page. This is the default value.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="addlink.htm">AddLink()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,37 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetMargins</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetMargins</H2>
<TT>SetMargins(<B>float</B> left, <B>float</B> top [, <B>float</B> right])</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change
them.
<H4 CLASS='st'>Parameters</H4>
<TT><U>left</U></TT>
<BLOCKQUOTE>
Left margin.
</BLOCKQUOTE>
<TT><U>top</U></TT>
<BLOCKQUOTE>
Top margin.
</BLOCKQUOTE>
<TT><U>right</U></TT>
<BLOCKQUOTE>
Right margin. Default value is the left one.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setleftmargin.htm">SetLeftMargin()</A>,
<A HREF="settopmargin.htm">SetTopMargin()</A>,
<A HREF="setrightmargin.htm">SetRightMargin()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetRightMargin</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetRightMargin</H2>
<TT>SetRightMargin(<B>float</B> margin)</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Defines the right margin. The method can be called before creating the first page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>margin</U></TT>
<BLOCKQUOTE>
The margin.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setleftmargin.htm">SetLeftMargin()</A>,
<A HREF="settopmargin.htm">SetTopMargin()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>,
<A HREF="setmargins.htm">SetMargins()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetSubject</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetSubject</H2>
<TT>SetSubject(<B>string</B> subject)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the subject of the document.
<H4 CLASS='st'>Parameters</H4>
<TT><U>subject</U></TT>
<BLOCKQUOTE>
The subject.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setauthor.htm">SetAuthor()</A>,
<A HREF="setcreator.htm">SetCreator()</A>,
<A HREF="setkeywords.htm">SetKeywords()</A>,
<A HREF="settitle.htm">SetTitle()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,40 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetTextColor</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetTextColor</H2>
<TT>SetTextColor(<B>int</B> r [, <B>int</B> g, <B>int</B> b])</TT>
<H4 CLASS='st'>Version</H4>
1.3
<H4 CLASS='st'>Description</H4>
Defines the color used for text. It can be expressed in RGB components or gray scale. The
method can be called before the first page is created and the value is retained from page to
page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>r</U></TT>
<BLOCKQUOTE>
If <TT>g</TT> et <TT>b</TT> are given, red component; if not, indicates the gray level.
Value between 0 and 255.
</BLOCKQUOTE>
<TT><U>g</U></TT>
<BLOCKQUOTE>
Green component (between 0 and 255).
</BLOCKQUOTE>
<TT><U>b</U></TT>
<BLOCKQUOTE>
Blue component (between 0 and 255).
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
<A HREF="setfillcolor.htm">SetFillColor()</A>,
<A HREF="text.htm">Text()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetTitle</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetTitle</H2>
<TT>SetTitle(<B>string</B> title)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the title of the document.
<H4 CLASS='st'>Parameters</H4>
<TT><U>title</U></TT>
<BLOCKQUOTE>
The title.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setauthor.htm">SetAuthor()</A>,
<A HREF="setcreator.htm">SetCreator()</A>,
<A HREF="setkeywords.htm">SetKeywords()</A>,
<A HREF="setsubject.htm">SetSubject()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetTopMargin</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetTopMargin</H2>
<TT>SetTopMargin(<B>float</B> margin)</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
Defines the top margin. The method can be called before creating the first page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>margin</U></TT>
<BLOCKQUOTE>
The margin.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setleftmargin.htm">SetLeftMargin()</A>,
<A HREF="setrightmargin.htm">SetRightMargin()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>,
<A HREF="setmargins.htm">SetMargins()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,29 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetX</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetX</H2>
<TT>SetX(<B>float</B> x)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the abscissa of the current position. If the passed value is negative, it is relative
to the right of the page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x</U></TT>
<BLOCKQUOTE>
The value of the abscissa.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="getx.htm">GetX()</A>,
<A HREF="gety.htm">GetY()</A>,
<A HREF="sety.htm">SetY()</A>,
<A HREF="setxy.htm">SetXY()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,31 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetXY</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetXY</H2>
<TT>SetXY(<B>float</B> x, <B>float</B> y)</TT>
<H4 CLASS='st'>Version</H4>
1.2
<H4 CLASS='st'>Description</H4>
Defines the abscissa and ordinate of the current position. If the passed values are negative,
they are relative respectively to the right and bottom of the page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x</U></TT>
<BLOCKQUOTE>
The value of the abscissa.
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
The value of the ordinate.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setx.htm">SetX()</A>,
<A HREF="sety.htm">SetY()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,29 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>SetY</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>SetY</H2>
<TT>SetY(<B>float</B> y)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Moves the current abscissa back to the left margin and sets the ordinate. If the passed value
is negative, it is relative to the bottom of the page.
<H4 CLASS='st'>Parameters</H4>
<TT><U>y</U></TT>
<BLOCKQUOTE>
The value of the ordinate.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="getx.htm">GetX()</A>,
<A HREF="gety.htm">GetY()</A>,
<A HREF="sety.htm">SetY()</A>,
<A HREF="setxy.htm">SetXY()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,39 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Text</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Text</H2>
<TT>Text(<B>float</B> x, <B>float</B> y, <B>string</B> txt)</TT>
<H4 CLASS='st'>Version</H4>
1.0
<H4 CLASS='st'>Description</H4>
Prints a character string. The origin is on the left of the first character, on the baseline.
This method allows to place a string precisely on the page, but it is usually easier to use
Cell(), MultiCell() or Write() which are the standard methods to print text.
<H4 CLASS='st'>Parameters</H4>
<TT><U>x</U></TT>
<BLOCKQUOTE>
Abscissa of the origin.
</BLOCKQUOTE>
<TT><U>y</U></TT>
<BLOCKQUOTE>
Ordinate of the origin.
</BLOCKQUOTE>
<TT><U>txt</U></TT>
<BLOCKQUOTE>
String to print.
</BLOCKQUOTE>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="cell.htm">Cell()</A>,
<A HREF="multicell.htm">MultiCell()</A>,
<A HREF="write.htm">Write()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

View File

@ -1,53 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<TITLE>Write</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
</HEAD>
<BODY>
<H2>Write</H2>
<TT>Write(<B>float</B> h, <B>string</B> txt [, <B>mixed</B> link])</TT>
<H4 CLASS='st'>Version</H4>
1.5
<H4 CLASS='st'>Description</H4>
This method prints text from the current position. When the right margin is reached (or the \n
character is met) a line break occurs and text continues from the left margin. Upon method exit,
the current position is left just at the end of the text.
<BR>
It is possible to put a link on the text.
<H4 CLASS='st'>Parameters</H4>
<TT><U>h</U></TT>
<BLOCKQUOTE>
Line height.
</BLOCKQUOTE>
<TT><U>txt</U></TT>
<BLOCKQUOTE>
String to print.
</BLOCKQUOTE>
<TT><U>link</U></TT>
<BLOCKQUOTE>
URL or identifier returned by AddLink().
</BLOCKQUOTE>
<H4 CLASS='st'>Example</H4>
<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
<TT>
//Begin with regular font<BR>
$pdf-&gt;SetFont('Arial','',14);<BR>
$pdf-&gt;Write(5,'Visit ');<BR>
//Then put a blue underlined link<BR>
$pdf-&gt;SetTextColor(0,0,255);<BR>
$pdf-&gt;SetFont('','U');<BR>
$pdf-&gt;Write(5,'www.fpdf.org','http://www.fpdf.org');
</TT>
</TD></TR></TABLE><BR>
<H4 CLASS='st'>See also</H4>
<A HREF="setfont.htm">SetFont()</A>,
<A HREF="settextcolor.htm">SetTextColor()</A>,
<A HREF="addlink.htm">AddLink()</A>,
<A HREF="multicell.htm">MultiCell()</A>,
<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
<HR STYLE="margin-top:1.2em">
<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
</BODY>
</HTML>

Binary file not shown.

View File

@ -1,187 +0,0 @@
<?php
require_once("class.fpdf_table.php");
require_once("table_def.inc");
$pdf=new utfFPDF();
$pdf->SetAutoPageBreak(true, 20);
$pdf->SetTopMargin(30);
$pdf->AddPage();
$columns = 5; //five columns
$pdf->SetStyle("p","times","",10,"130,0,30");
$pdf->SetStyle("pb","times","B",11,"130,0,30");
$pdf->SetStyle("t1","arial","",11,"254,252,222");
$pdf->SetStyle("t1","arial","",11,"0,151,200");
$pdf->SetStyle("t2","arial","",11,"0,151,200");
$pdf->SetStyle("t3","times","B",14,"203,0,48");
$pdf->SetStyle("t4","arial","BI",11,"0,151,200");
$pdf->SetStyle("hh","times","B",11,"255,189,12");
$pdf->SetStyle("font","helvetica","",10,"0,0,255");
$pdf->SetStyle("style","helvetica","BI",10,"0,0,220");
$pdf->SetStyle("size","times","BI",13,"0,0,120");
$pdf->SetStyle("color","times","BI",13,"0,255,255");
$pdf->SetStyle("ss","arial","",7,"203,0,48");
$ttxt[1] = "<size>Tag-Based MultiCell TABLE</size>
Done by <t1 href='mailto:klodoma@ar-sd.net'>Bintintan Andrei</t1>";
$ttxt[2] = "<p>
<t3>Description</t3>
\tThis method allows printing <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='http://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4>ttags</t4> tag name is reserved for the TAB SPACES.
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
<style>
\t<hh size='50' >Controlled Tab Space~~~</hh> - Tab Space 1
\t<hh size='60' > ~~~</hh><font> - Tab Space 2</font>
\t<hh size='60' > ~~~</hh> - Tab Space 2
\t<hh size='70' > ~~~</hh><hh> - Tab Space 3</hh>
\t<hh size='50' > ~~~</hh> - Tab Space 1
\t<hh size='60' > ~~~</hh><t4> - Tab Space 2</t4>
</style>
\tIf no <t4><TAG></t4> is specified then the FPDF current settings are used.\n\n";
$ttxt[3] ="\t\t<style>Best Regards</style>";
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 20;
$header_type[1]['WIDTH'] = 30;
$header_type[2]['WIDTH'] = 40;
$header_type[3]['WIDTH'] = 40;
$header_type[4]['WIDTH'] = 20;
$header_type[0]['TEXT'] = "Header 1";
$header_type[1]['TEXT'] = "Header 2 With COLSPAN";
$header_type[2]['TEXT'] = "Header 3";
$header_type[3]['TEXT'] = "Header 4";
$header_type[4]['TEXT'] = "Header 5";
$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
$fsize = 5;
$colspan = 1;
$rr = 255;
for ($j=0; $j<30; $j++)
{
$data = Array();
$data[0]['TEXT'] = "No.$j";
$data[1]['TEXT'] = "Test Test - $j";
$data[2]['TEXT'] = "Test Test - $j";
$data[3]['TEXT'] = "Text Longer <p href='www.google.com'>TexTest Longer Text</p> Test Longer Text - $j";
$data[4]['TEXT'] = "Test text2 - $j";
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = 13 - $fsize;
$data[3]['T_SIZE'] = 14 - $fsize;
$data[0]['T_COLOR'] = array($rr,0,0);
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
$fsize++;
if ($fsize > 11) $fsize = 5;
if ($j>3 && $j<13){
$data[0]['TEXT'] = "Colspan Example$j";
$data[0]['COLSPAN'] = $colspan;
$data[0]['BG_COLOR'] = array($rr,0,0);
$data[0]['T_COLOR'] = array(255,255,$rr);
$colspan++;
if ($colspan>5) $colspan = 1;
}
if ($j>15 && $j<25){
$data[2]['TEXT'] = "Colspan Example$j";
$data[2]['COLSPAN'] = $colspan;
$data[2]['BG_COLOR'] = array($rr,0,0);
$data[2]['T_COLOR'] = array(255,255,$rr);
$colspan++;
if ($colspan>3) $colspan = 1;
}
if ($j>1){
$data[2]['BG_COLOR'] = array(255-$rr,$rr,$rr);
$data[2]['T_COLOR'] = array(255,255,$rr);
}
if ($j==0){
$data[0]['TEXT'] = "Top Right Align <p>Align Top</p> Right Right Align ";
$data[0]['T_ALIGN'] = "R";
$data[0]['V_ALIGN'] = "T";
$data[1]['TEXT'] = "Middle Center Align Bold Italic";
$data[1]['T_ALIGN'] = "C";
$data[1]['T_TYPE'] = "BI";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "\n\n\n\n\nBottom Left Align";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "B";
$data[3]['TEXT'] = "Middle Justified Align Longer text";
$data[3]['T_ALIGN'] = "J";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "TOP RIGHT Align";
$data[4]['T_ALIGN'] = "R";
$data[4]['V_ALIGN'] = "T";
}
if ($j>0 and $j<4){
$data[0]['TEXT'] = "";
$data[1]['TEXT'] = "";
$data[2]['TEXT'] = "";
$data[3]['TEXT'] = "";
$data[4]['TEXT'] = "";
$data[$j-1]['TEXT'] = $ttxt[$j];
$data[$j-1]['COLSPAN'] = 4;
$data[$j-1]['T_ALIGN'] = "J";
$data[$j-1]['LN_SIZE'] = 5;
}
if ($j== 14) {
$data[1]['TEXT'] = "<size>Colspan = 4 and ... this\nCELL\nIS\nSPLITTED. Turn this split off with:\nFPDF_TABLE::Set_Table_SplitMode(true(default)/false) function</size>";
$data[1]['T_ALIGN'] = "C";
$data[1]['BG_COLOR'] = array(240,245,221);
$data[1]['COLSPAN'] = 4;
}
$rr -= 25;
if ($rr<100) $rr = 255;
$pdf->Draw_Data($data);
}
$pdf->Draw_Table_Border();
$pdf->Output();
?>

View File

@ -1,7 +0,0 @@
<?php
for($i=0;$i<=255;$i++)
$fpdf_charwidths['courier'][chr($i)]=600;
$fpdf_charwidths['courierB']=$fpdf_charwidths['courier'];
$fpdf_charwidths['courierI']=$fpdf_charwidths['courier'];
$fpdf_charwidths['courierBI']=$fpdf_charwidths['courier'];
?>

View File

@ -1,15 +0,0 @@
<?php
$fpdf_charwidths['helvetica']=array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
?>

View File

@ -1,15 +0,0 @@
<?php
$fpdf_charwidths['helveticaB']=array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
?>

View File

@ -1,15 +0,0 @@
<?php
$fpdf_charwidths['helveticaBI']=array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
?>

Some files were not shown because too many files have changed in this diff Show More