Skip to content

Commit ad018e2

Browse files
committed
cleanup examples
1 parent 21436aa commit ad018e2

37 files changed

Lines changed: 156 additions & 47 deletions

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.19.0
1+
8.19.1

examples/E001_invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
$pdf->setAuthor('Nicola Asuni');
4242
$pdf->setSubject('tc-lib-pdf example: 001');
4343
$pdf->setTitle('Example Invoice Factur-X 1.07 / ZUGFeRD 2.3');
44-
$pdf->setKeywords('TCPDF tc-lib-pdf example');
44+
$pdf->setKeywords('TCPDF tc-lib-pdf invoice Factur-X ZUGFeRD e-invoice XML');
4545
$pdf->setPDFFilename('001_invoice.pdf');
4646

4747
$pdf->setViewerPreferences(['DisplayDocTitle' => true]);

examples/E002_font_dump.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
$pdf->setCreator('tc-lib-pdf');
4040
$pdf->setAuthor('Nicola Asuni');
4141
$pdf->setSubject('tc-lib-pdf example: 002');
42-
$pdf->setTitle('Example');
43-
$pdf->setKeywords('TCPDF tc-lib-pdf example');
42+
$pdf->setTitle('Font Dump and Glyph Coverage');
43+
$pdf->setKeywords('TCPDF tc-lib-pdf fonts glyphs unicode dump metrics');
4444
$pdf->setPDFFilename('002_font_dump.pdf');
4545

4646
$pdf->setViewerPreferences(['DisplayDocTitle' => true]);

examples/E003_persian_arabic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
$pdf->setCreator('tc-lib-pdf');
4040
$pdf->setAuthor('Nicola Asuni');
4141
$pdf->setSubject('tc-lib-pdf example: 003');
42-
$pdf->setTitle('Example');
43-
$pdf->setKeywords('TCPDF tc-lib-pdf example');
42+
$pdf->setTitle('Persian and Arabic Text Rendering');
43+
$pdf->setKeywords('TCPDF tc-lib-pdf persian arabic rtl bidi unicode shaping');
4444
$pdf->setPDFFilename('003_persian_arabic.pdf');
4545

4646
$pdf->setViewerPreferences(['DisplayDocTitle' => true]);

examples/E004_page_formats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
$pdf->setCreator('tc-lib-pdf');
4040
$pdf->setAuthor('Nicola Asuni');
4141
$pdf->setSubject('tc-lib-pdf example: 004');
42-
$pdf->setTitle('Example');
43-
$pdf->setKeywords('TCPDF tc-lib-pdf example');
42+
$pdf->setTitle('Page Formats and Orientation');
43+
$pdf->setKeywords('TCPDF tc-lib-pdf page formats orientation A4 Letter custom size');
4444
$pdf->setPDFFilename('004_page_formats.pdf');
4545

4646
$pdf->setViewerPreferences(['DisplayDocTitle' => true]);

examples/E006_minimal.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
// main TCPDF object
2525
$pdf = new \Com\Tecnick\Pdf\Tcpdf();
2626

27+
$pdf->setCreator('tc-lib-pdf');
28+
$pdf->setAuthor('Nicola Asuni');
29+
$pdf->setSubject('tc-lib-pdf example: 006');
30+
$pdf->setTitle('Minimal Example');
31+
$pdf->setKeywords('TCPDF tc-lib-pdf minimal hello world basic');
32+
$pdf->setPDFFilename('006_minimal.pdf');
33+
2734
// Insert font
2835
$bfont = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
2936

examples/E010_pdfx.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
\define('K_PATH_FONTS', \realpath(__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts'));
1919

2020
$pdf = new \Com\Tecnick\Pdf\Tcpdf('mm', true, false, true, 'pdfx');
21+
22+
$pdf->setCreator('tc-lib-pdf');
23+
$pdf->setAuthor('Nicola Asuni');
24+
$pdf->setSubject('tc-lib-pdf example: 010');
25+
$pdf->setTitle('PDF/X Example');
26+
$pdf->setKeywords('TCPDF tc-lib-pdf example pdfx');
27+
$pdf->setPDFFilename('010_pdfx.pdf');
28+
2129
$font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
2230
$page = $pdf->addPage();
2331
$pdf->page->addContent($font['out']);

examples/E011_pdfx1a.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
\define('K_PATH_FONTS', \realpath(__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts'));
99

1010
$pdf = new \Com\Tecnick\Pdf\Tcpdf('mm', true, false, true, 'pdfx1a');
11+
12+
$pdf->setCreator('tc-lib-pdf');
13+
$pdf->setAuthor('Nicola Asuni');
14+
$pdf->setSubject('tc-lib-pdf example: 011');
15+
$pdf->setTitle('PDF/X-1a Example');
16+
$pdf->setKeywords('TCPDF tc-lib-pdf example pdfx1a');
17+
$pdf->setPDFFilename('011_pdfx1a.pdf');
18+
1119
$font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
1220
$pdf->addPage();
1321
$pdf->page->addContent($font['out']);

examples/E012_pdfx3.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
\define('K_PATH_FONTS', \realpath(__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts'));
99

1010
$pdf = new \Com\Tecnick\Pdf\Tcpdf('mm', true, false, true, 'pdfx3');
11+
12+
$pdf->setCreator('tc-lib-pdf');
13+
$pdf->setAuthor('Nicola Asuni');
14+
$pdf->setSubject('tc-lib-pdf example: 012');
15+
$pdf->setTitle('PDF/X-3 Example');
16+
$pdf->setKeywords('TCPDF tc-lib-pdf example pdfx3');
17+
$pdf->setPDFFilename('012_pdfx3.pdf');
18+
1119
$font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
1220
$pdf->addPage();
1321
$pdf->page->addContent($font['out']);

examples/E013_pdfx4.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
\define('K_PATH_FONTS', \realpath(__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts'));
99

1010
$pdf = new \Com\Tecnick\Pdf\Tcpdf('mm', true, false, true, 'pdfx4');
11+
12+
$pdf->setCreator('tc-lib-pdf');
13+
$pdf->setAuthor('Nicola Asuni');
14+
$pdf->setSubject('tc-lib-pdf example: 013');
15+
$pdf->setTitle('PDF/X-4 Example');
16+
$pdf->setKeywords('TCPDF tc-lib-pdf example pdfx4');
17+
$pdf->setPDFFilename('013_pdfx4.pdf');
18+
1119
$font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
1220
$pdf->addPage();
1321
$pdf->page->addContent($font['out']);

0 commit comments

Comments
 (0)