Blame | Letzte Änderung | Log anzeigen | RSS feed
--TEST--File_PDF: Automatic page break test--FILE--<?phprequire_once dirname(__FILE__) . '/../PDF.php';// Set up the pdf object.$pdf = &File_PDF::factory(array('format' => array(50, 50), 'unit' => 'pt'));// Deactivate compression.$pdf->setCompression(false);// Set margins.$pdf->setMargins(0, 0);// Enable automatic page breaks.$pdf->setAutoPageBreak(true);// Start the document.$pdf->open();// Start a page.$pdf->addPage();// Set font to Courier 8 pt.$pdf->setFont('Courier', '', 10);// Write 7 lines$pdf->write(10, "Hello\nHello\nHello\nHello\nHello\nHello\nHello\n");// Print the generated file.echo $pdf->getOutput();?>--EXPECTF--%PDF-1.33 0 obj<</Type /Page/Parent 1 0 R/Resources 2 0 R/Contents 4 0 R>>endobj4 0 obj<</Length 184>>stream2 J0.57 wBT /F1 10.00 Tf ETBT 2.83 42.00 Td (Hello) Tj ETBT 2.83 32.00 Td (Hello) Tj ETBT 2.83 22.00 Td (Hello) Tj ETBT 2.83 12.00 Td (Hello) Tj ETBT 2.83 2.00 Td (Hello) Tj ETendstreamendobj5 0 obj<</Type /Page/Parent 1 0 R/Resources 2 0 R/Contents 6 0 R>>endobj6 0 obj<</Length 92>>stream2 J0.57 wBT /F1 10.00 Tf ETBT 2.83 42.00 Td (Hello) Tj ETBT 2.83 32.00 Td (Hello) Tj ETendstreamendobj1 0 obj<</Type /Pages/Kids [3 0 R 5 0 R ]/Count 2/MediaBox [0 0 50.00 50.00]>>endobj7 0 obj<</Type /Font/BaseFont /Courier/Subtype /Type1/Encoding /WinAnsiEncoding>>endobj2 0 obj<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]/Font <</F1 7 0 R>>>>endobj8 0 obj<</Producer (Horde PDF)/CreationDate (D:%d)>>endobj9 0 obj<</Type /Catalog/Pages 1 0 R/OpenAction [3 0 R /FitH null]/PageLayout /OneColumn>>endobjxref0 100000000000 65535 f0000000538 00000 n0000000723 00000 n0000000009 00000 n0000000087 00000 n0000000320 00000 n0000000398 00000 n0000000629 00000 n0000000811 00000 n0000000887 00000 ntrailer<</Size 10/Root 9 0 R/Info 8 0 R>>startxref990%%EOF