--TEST-- File_PDF: "Hello World!" test --FILE-- 'P', 'format' => 'A4')); // Start the document. $pdf->open(); // Activate compression. $pdf->setCompression(true); // Start a page. $pdf->addPage(); // Set font to Courier 8 pt. $pdf->setFont('Courier', '', 8); // Text at x=100 and y=100. $pdf->text(100, 100, 'First page'); // Set font size to 20 pt. $pdf->setFontSize(20); // Text at x=100 and y=200. $pdf->text(100, 200, 'HELLO WORLD!'); // Add a new page. $pdf->addPage(); // Set font to Arial bold italic 12 pt. $pdf->setFont('Arial', 'BI', 12); // Text at x=100 and y=200. $pdf->text(100, 100, 'Second page'); // Print the generated file. echo $pdf->getOutput(); // Set up the pdf object. $pdf = &File_PDF::factory(array('orientation' => 'P', 'format' => 'A4')); // Start the document. $pdf->open(); // Deactivate compression. $pdf->setCompression(false); // Start a page. $pdf->addPage(); // Set font to Courier 8 pt. $pdf->setFont('Courier', '', 8); // Text at x=100 and y=100. $pdf->text(100, 100, 'First page'); // Set font size to 20 pt. $pdf->setFontSize(20); // Text at x=100 and y=200. $pdf->text(100, 200, 'HELLO WORLD!'); // Add a new page. $pdf->addPage(); // Set font to Arial bold italic 12 pt. $pdf->setFont('Arial', 'BI', 12); // Text at x=100 and y=200. $pdf->text(100, 100, 'Second page'); // Print the generated file. echo $pdf->getOutput(); ?> --EXPECTF-- %PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x3R235W(r Qw3T30PISp Y뙘)Z+(he($j*dA4`idngi ?W endstream endobj 5 0 obj <> endobj 6 0 obj <> stream x3R235W(r Qw3T0230PISp )Y뙘)Z+(h&($j*dSk endstream endobj 1 0 obj <> endobj 7 0 obj <> endobj 8 0 obj <> endobj 2 0 obj <> >> endobj 9 0 obj << /Producer (Horde PDF) /CreationDate (D:%d) >> endobj 10 0 obj << /Type /Catalog /Pages 1 0 R /OpenAction [3 0 R /FitH null] /PageLayout /OneColumn >> endobj xref 0 11 0000000000 65535 f 0000000484 00000 n 0000000779 00000 n 0000000009 00000 n 0000000087 00000 n 0000000257 00000 n 0000000335 00000 n 0000000577 00000 n 0000000671 00000 n 0000000877 00000 n 0000000953 00000 n trailer << /Size 11 /Root 10 0 R /Info 9 0 R >> startxref 1057 %%EOF %PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream 2 J 0.57 w BT /F1 8.00 Tf ET BT 283.46 558.43 Td (First page) Tj ET BT /F1 20.00 Tf ET BT 283.46 274.96 Td (HELLO WORLD!) Tj ET endstream endobj 5 0 obj <> endobj 6 0 obj <> stream 2 J 0.57 w BT /F1 20.00 Tf ET BT /F2 12.00 Tf ET BT 283.46 558.43 Td (Second page) Tj ET endstream endobj 1 0 obj <> endobj 7 0 obj <> endobj 8 0 obj <> endobj 2 0 obj <> >> endobj 9 0 obj << /Producer (Horde PDF) /CreationDate (D:%d) >> endobj 10 0 obj << /Type /Catalog /Pages 1 0 R /OpenAction [3 0 R /FitH null] /PageLayout /OneColumn >> endobj xref 0 11 0000000000 65535 f 0000000479 00000 n 0000000774 00000 n 0000000009 00000 n 0000000087 00000 n 0000000264 00000 n 0000000342 00000 n 0000000572 00000 n 0000000666 00000 n 0000000872 00000 n 0000000948 00000 n trailer << /Size 11 /Root 10 0 R /Info 9 0 R >> startxref 1052 %%EOF