$pdf = new TCPDF(); $pdf->SetCreator('My Company');
$pdf = new TCPDF(); $pdf->AddPage(); $pdf->SetFont('times', '', 12); $pdf->SetCreator('My Company'); $pdf->Write(5, 'Hello World!', '', 0, 'L', true, 0, false, false, 0); $pdf->Output();In this example, we create a new TCPDF object, add a new page, set the font, set the creator to 'My Company', write some text to the page, and output the PDF document. Package library: TCPDF.