-
-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathE014_pdfx5.php
More file actions
24 lines (18 loc) · 806 Bytes
/
E014_pdfx5.php
File metadata and controls
24 lines (18 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* E014_pdfx5.php
*/
require(__DIR__ . '/../vendor/autoload.php');
\define('K_PATH_FONTS', \realpath(__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts'));
$pdf = new \Com\Tecnick\Pdf\Tcpdf('mm', true, false, true, 'pdfx5');
$font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12);
$pdf->addPage();
$pdf->page->addContent($font['out']);
$html = '<h1>PDF/X-5</h1>'
. '<p>Mode: pdfx5</p>'
. '<p>PDF/X-5 builds on the PDF/X-4 family for more advanced print workflows and external references.</p>'
. '<p>Highlights: minimum PDF 1.6 output, transparency retained, modern PDF/X identification, '
. 'and the same print-safe suppression of unsupported interactive actions.</p>';
$pdf->addHTMLCell($html, 15, 20, 180);
$rawpdf = $pdf->getOutPDFString();
$pdf->renderPDF($rawpdf);