>     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?

ie.

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

-Rasmus



-- 
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