mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- fixed some errors in second example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163110 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
514919ea8c
commit
e9822b23ec
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<reference id="ref.cpdf">
|
||||
<title>ClibPDF Functions</title>
|
||||
<titleabbrev>ClibPDF</titleabbrev>
|
||||
|
@ -91,11 +91,12 @@ 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_text($cpdf, "Times Roman outlined", 50, 50);
|
||||
cpdf_end_text($cpdf);
|
||||
cpdf_moveto($cpdf, 50, 740);
|
||||
cpdf_lineto($cpdf, 330, 740);
|
||||
cpdf_moveto($cpdf, 50, 50);
|
||||
cpdf_lineto($cpdf, 740, 330);
|
||||
cpdf_stroke($cpdf);
|
||||
cpdf_finalize_page($cpdf, 1);
|
||||
cpdf_finalize($cpdf);
|
||||
Header("Content-type: application/pdf");
|
||||
cpdf_output_buffer($cpdf);
|
||||
|
|
Loading…
Reference in a new issue