diff --git a/tcpdf_demo b/tcpdf_demo index 7713362..bd7db51 100755 --- a/tcpdf_demo +++ b/tcpdf_demo @@ -14,19 +14,17 @@ Links: - https://packagist.org/packages/rev42/tfpdf - https://packagist.org/packages/setasign/fpdi + - http://www.tcpdf.org/doc/code/classTCPDF-members.html + - http://www.tcpdf.org/examples.php - http://www.fpdf.org/ - http://www.fpdf.org/en/doc/index.php - http://www.fpdf.org/en/tutorial/index.php - http://www.fpdf.org/en/tutorial/tuto6.htm (Links and flowing text) - - http://www.tcpdf.org/doc/code/classTCPDF-members.html This script also requires FPDI to load PDF documents into memory - https://www.setasign.com/products/fpdi/about/ - https://www.setasign.com/products/fpdi/manual/#p-200 - NOTE the line 'use tFPDF as FPDF;' needs to be added to the FPDI - library, specifically in vendor/setasign/fpdi/fpdi_bridge.php, line 19, - for FPDI to work */ $loader = require __DIR__ . '/vendor/autoload.php'; @@ -39,6 +37,14 @@ date_default_timezone_set("America/Los_Angeles"); //$pdf = new TCPDF('p', 'mm', 'Letter', TRUE, 'UTF-8'); class_exists('TCPDF', true); $pdf = new FPDI('p', 'mm', 'Letter', TRUE, 'UTF-8'); + +// Set up document properties +$pdf->SetCreator('IODP Science Support Office'); +$pdf->SetAuthor('IODP Science Support Office'); +$pdf->SetTitle('Demo of TCPDF for generating IODP Proposals'); +$pdf->SetSubject('IODP Proposals'); +$pdf->SetKeywords('IODP proposal ocean drilling core expedition'); + // disable headers and footers on all pages $pdf->setPrintHeader(FALSE); $pdf->setPrintFooter(FALSE);