$pdf->tempPath = 'C:/temp'; } $start = microtime(true); // IMPORTANT: To allow custom callbacks being executed $pdf->allowedTags .= '|uline|rf:?.*?|dots:[0-9]+'; $pdf->ezSetMargins(50, 70, 50, 50); // put a line top and bottom on all the pages $all = $pdf->openObject(); $pdf->saveState(); $pdf->setStrokeColor(0, 0, 0, 1); $pdf->line(20, 40, 578, 40); $pdf->line(20, 822, 578, 822); $pdf->addText(20, 30, 8, $project_url); $pdf->addText(515, 30, 8, 'Version ' . $project_version); $pdf->restoreState(); $pdf->closeObject(); // note that object can be told to appear on just odd or even pages by changing 'all' to 'odd' // or 'even'. $pdf->addObject($all, 'all'); $pdf->ezSetDy(-150); $mainFont = 'Helvetica'; $codeFont = './src/fonts/Courier.afm'; // select a font $pdf->selectFont($mainFont); $pdf->ezText("PHP Pdf Class\n", 30, array('justification' => 'centre')); $pdf->ezText("Native PDF document creation with PHP 5.X\n", 20, array('justification' => 'centre')); $pdf->ezText("hosted on github.com\n\n<c:alink:https://github.com/rospdf/pdf-php/graphs/contributors>Contributors</c:alink>\n", 14, array('justification' => 'centre')); $pdf->ezText("Version {$project_version}", 12, array('justification' => 'centre')); $pdf->ezSetDy(-150); // modified to use the local file if it can $pdf->ezText("FORK ON GITHUB.COM", 12, array('justification' => 'right'));