note 34374 deleted from ref.cpdf by didou

From: Date: Fri, 25 Jul 2003 07:29:05 +0000
Subject: note 34374 deleted from ref.cpdf by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52609@lists.php.net to get a copy of this message
Note Submitter: paul@ue.com.br ---- I noticed that you need sometimes to add, cpdf_output_buffer() more than one time... because I receive a empty document... try this code... <?php $pdf = cpdf_open(0); cpdf_page_init($pdf, 1, 2, 588, 816, 2.0); $stt = "my text"; cpdf_rotate($pdf, 90); cpdf_begin_text($pdf); cpdf_set_font($pdf, "Arial", 10, "NULL"); cpdf_text($pdf, "$stt", 20, -20); cpdf_end_text($pdf); cpdf_finalize($pdf); Header("Content-type: application/pdf"); cpdf_output_buffer($pdf); cpdf_output_buffer($pdf); cpdf_output_buffer($pdf); cpdf_close($pdf); ?>

« previous php.notes (#52609) next »