Is cpdf broken in v4.0.6?

From: Date: Sat, 14 Jul 2001 19:05:14 +0000
Subject: Is cpdf broken in v4.0.6?
Groups: php.windows 
Request: Send a blank email to php-windows+get-8326@lists.php.net to get a copy of this message
Hi I've just started to try using the cpdf, and I was wondering if the cpdf is broken in v4.0.6, the following is from the manual, and produce a empty pdf ;-(( <?php $cpdf = cpdf_open(0); cpdf_page_init($cpdf, 1, 0, 595, 842); cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1"); cpdf_begin_text($cpdf); cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding"); cpdf_set_text_rendering($cpdf, 1); cpdf_text($cpdf, "Times Roman outlined", 50, 750); cpdf_end_text($cpdf); cpdf_moveto($cpdf, 50, 740); cpdf_lineto($cpdf, 330, 740); cpdf_stroke($cpdf); cpdf_finalize($cpdf); Header("Content-type: application/pdf"); cpdf_output_buffer($cpdf); cpdf_close($cpdf); ?> What am I missing ? Thanks in advance Best Steen

« previous php.windows (#8326) next »