Commit f9af74f4818905442ff2fcfa32de4a7974faa7d9
1 parent
c3e38f7906
Exists in
master
tcpdf_demo: added document properties, and added TCPDF-specific links
Showing 1 changed file with 10 additions and 4 deletions Side-by-side Diff
tcpdf_demo
View file @
f9af74f
... | ... | @@ -14,19 +14,17 @@ |
14 | 14 | Links: |
15 | 15 | - https://packagist.org/packages/rev42/tfpdf |
16 | 16 | - https://packagist.org/packages/setasign/fpdi |
17 | + - http://www.tcpdf.org/doc/code/classTCPDF-members.html | |
18 | + - http://www.tcpdf.org/examples.php | |
17 | 19 | - http://www.fpdf.org/ |
18 | 20 | - http://www.fpdf.org/en/doc/index.php |
19 | 21 | - http://www.fpdf.org/en/tutorial/index.php |
20 | 22 | - http://www.fpdf.org/en/tutorial/tuto6.htm (Links and flowing text) |
21 | - - http://www.tcpdf.org/doc/code/classTCPDF-members.html | |
22 | 23 | |
23 | 24 | This script also requires FPDI to load PDF documents into memory |
24 | 25 | - https://www.setasign.com/products/fpdi/about/ |
25 | 26 | - https://www.setasign.com/products/fpdi/manual/#p-200 |
26 | 27 | |
27 | - NOTE the line 'use tFPDF as FPDF;' needs to be added to the FPDI | |
28 | - library, specifically in vendor/setasign/fpdi/fpdi_bridge.php, line 19, | |
29 | - for FPDI to work | |
30 | 28 | */ |
31 | 29 | |
32 | 30 | $loader = require __DIR__ . '/vendor/autoload.php'; |
... | ... | @@ -39,6 +37,14 @@ |
39 | 37 | //$pdf = new TCPDF('p', 'mm', 'Letter', TRUE, 'UTF-8'); |
40 | 38 | class_exists('TCPDF', true); |
41 | 39 | $pdf = new FPDI('p', 'mm', 'Letter', TRUE, 'UTF-8'); |
40 | + | |
41 | +// Set up document properties | |
42 | +$pdf->SetCreator('IODP Science Support Office'); | |
43 | +$pdf->SetAuthor('IODP Science Support Office'); | |
44 | +$pdf->SetTitle('Demo of TCPDF for generating IODP Proposals'); | |
45 | +$pdf->SetSubject('IODP Proposals'); | |
46 | +$pdf->SetKeywords('IODP proposal ocean drilling core expedition'); | |
47 | + | |
42 | 48 | // disable headers and footers on all pages |
43 | 49 | $pdf->setPrintHeader(FALSE); |
44 | 50 | $pdf->setPrintFooter(FALSE); |