setCreator('tc-lib-pdf'); $pdf->setAuthor('Nicola Asuni'); $pdf->setSubject('tc-lib-pdf example: 013'); $pdf->setTitle('PDF/X-4 Example'); $pdf->setKeywords('TCPDF tc-lib-pdf example pdfx4'); $pdf->setPDFFilename('013_pdfx4.pdf'); $font = $pdf->font->insert($pdf->pon, 'helvetica', '', 12); $pdf->addPage(); $pdf->page->addContent($font['out']); $html = '

PDF/X-4

' . '

Mode: pdfx4

' . '

PDF/X-4 modernizes print exchange by allowing live transparency in a color-managed workflow.

' . '

Highlights: minimum PDF 1.6 output, PDF/X-4 identification metadata, transparency retained, ' . 'encryption disabled, and interactive actions still suppressed for print conformance.

'; $pdf->addHTMLCell(html: $html, posx: 15, posy: 20, width: 180); $rawpdf = $pdf->getOutPDFString(); $pdf->renderPDF(rawpdf: $rawpdf);