http://www.php.net/manual/ref.cpdf.php

From: Date: Mon, 28 Aug 2000 08:48:04 +0000
Subject: http://www.php.net/manual/ref.cpdf.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1832@lists.php.net to get a copy of this message
good morning trying out the example, i found two litte mistypes. you might want to replace them with $cpdf: best regards, urs www.circle.ch Example 1. Simple ClibPDF Example <?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($pdf); ^ 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($pdf); ^ 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); ?>

« previous php.mirrors (#1832) next »