mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS : *don't* use tabulations
CS : examples start at col 0 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147965 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b0b510f02a
commit
b93e51de1c
3 changed files with 73 additions and 66 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/pdf.xml, last change in rev 1.65 -->
|
||||
<refentry id="function.pdf-arc">
|
||||
<refnamediv>
|
||||
|
@ -30,30 +30,32 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// an outlined arc
|
||||
pdf_arc($pdf, 200, 700, 100, 0, 90);
|
||||
pdf_stroke($pdf);
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// a filled arc
|
||||
pdf_arc($pdf, 200, 700, 50, 0, 90);
|
||||
pdf_fill($pdf);
|
||||
// an outlined arc
|
||||
pdf_arc($pdf, 200, 700, 100, 0, 90);
|
||||
pdf_stroke($pdf);
|
||||
|
||||
// an outlined and filled arc
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.8);
|
||||
pdf_arc($pdf, 400, 700, 50, 0, 90);
|
||||
pdf_fill_stroke($pdf);
|
||||
// a filled arc
|
||||
pdf_arc($pdf, 200, 700, 50, 0, 90);
|
||||
pdf_fill($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
pdf_delete($pdf);
|
||||
// an outlined and filled arc
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.8);
|
||||
pdf_arc($pdf, 400, 700, 50, 0, 90);
|
||||
pdf_fill_stroke($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
|
||||
pdf_delete($pdf);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/pdf.xml, last change in rev 1.42 -->
|
||||
<refentry id="function.pdf-arcn">
|
||||
<refnamediv>
|
||||
|
@ -30,30 +30,33 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// an outlined arcn
|
||||
pdf_arcn($pdf, 200, 700, 100, 0, 90);
|
||||
pdf_stroke($pdf);
|
||||
|
||||
// a filled arcn
|
||||
pdf_arcn($pdf, 200, 700, 50, 0, 90);
|
||||
pdf_fill($pdf);
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// an outlined and filled arcn
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.8);
|
||||
pdf_arcn($pdf, 400, 700, 50, 0, 90);
|
||||
pdf_fill_stroke($pdf);
|
||||
// an outlined arcn
|
||||
pdf_arcn($pdf, 200, 700, 100, 0, 90);
|
||||
pdf_stroke($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
pdf_delete($pdf);
|
||||
// a filled arcn
|
||||
pdf_arcn($pdf, 200, 700, 50, 0, 90);
|
||||
pdf_fill($pdf);
|
||||
|
||||
// an outlined and filled arcn
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.8);
|
||||
pdf_arcn($pdf, 400, 700, 50, 0, 90);
|
||||
pdf_fill_stroke($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
|
||||
pdf_delete($pdf);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/pdf.xml, last change in rev 1.42 -->
|
||||
<refentry id="function.pdf-circle">
|
||||
<refnamediv>
|
||||
|
@ -30,30 +30,32 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// an outlined circle
|
||||
pdf_circle($pdf, 200, 700, 100);
|
||||
pdf_stroke($pdf);
|
||||
// prepare document
|
||||
$pdf = pdf_new();
|
||||
pdf_open_file($pdf, "");
|
||||
pdf_begin_page($pdf, 595, 842);
|
||||
|
||||
// a filled circle
|
||||
pdf_circle($pdf, 200, 700, 50);
|
||||
pdf_fill($pdf);
|
||||
// an outlined circle
|
||||
pdf_circle($pdf, 200, 700, 100);
|
||||
pdf_stroke($pdf);
|
||||
|
||||
// an outlined and filled circle
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.3);
|
||||
pdf_circle($pdf, 400, 700, 50);
|
||||
pdf_fill_stroke($pdf);
|
||||
// a filled circle
|
||||
pdf_circle($pdf, 200, 700, 50);
|
||||
pdf_fill($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
pdf_delete($pdf);
|
||||
// an outlined and filled circle
|
||||
pdf_setcolor($pdf, "fill", "gray", 0.3);
|
||||
pdf_circle($pdf, 400, 700, 50);
|
||||
pdf_fill_stroke($pdf);
|
||||
|
||||
// finish document
|
||||
pdf_end_page($pdf);
|
||||
pdf_close($pdf);
|
||||
|
||||
header("Content-type: application/pdf");
|
||||
echo pdf_get_buffer($pdf);
|
||||
|
||||
pdf_delete($pdf);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue