note 34374 added to ref.cpdf

From: Date: Fri, 25 Jul 2003 07:28:15 +0000
Subject: note 34374 added to ref.cpdf
Groups: php.notes 
Request: Send a blank email to php-notes+get-52608@lists.php.net to get a copy of this message
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); ?> ---- Manual Page -- http://www.php.net/manual/en/ref.cpdf.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34374 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34374&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34374&report=yes

« previous php.notes (#52608) next »