>     I have used the PDFLib to generate a pdf by myself. I would like to
> know how to make a page break and then draw second page which the
> content is exactly the first page.
> I need to repeat this step 9 times so I can use printer function to
> print 9-in-1 page.

Why not just put a loop around your code?


 $pdf = pdf_new();
 while($i<9) {
    pdf_begin_page($pdf, $x, $y);
 $data = pdf_get_buffer($pdf);
 header('Content-type: application/pdf');
 header("Content-disposition: inline; filename=foo.pdf");
 header("Content-length: " . strlen($data));
 echo $data


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to