cvs: phpdoc /en/reference/haru book.xml builtin.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Sat, 22 Dec 2007 16:26:47 +0000 |
| Subject: | cvs: phpdoc /en/reference/haru book.xml builtin.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-727@lists.php.net to get a copy of this message | ||
bjori Sat Dec 22 16:26:47 2007 UTC
Removed files:
/phpdoc/en/reference/haru reference.xml
Modified files:
/phpdoc/en/reference/haru book.xml constants.xml examples.xml
setup.xml builtin.xml
Log:
MFB: Upgrade to the new-reference-structure
- (Created missing setup sections in setup.xml, if any)
- Moved the intro to book.xml
- Changed the intro ID from <extname>.intro to intro.<extname>
- Moved requirements/install/configuration sections to setup.xml
NOTE: the haru.install ID was renamed to haru.installation
- Moved the example to its own chapter (examples.xml)
NOTE: The chapter has the ID haru.examples, the old haru.examples ID was renamed to
haru.examples-basic
- Removed the haru.classess ID (and its content)
- Moved all the class-referencing-file-entities to book.xml
- Changed the builtin section (builtin.xml) to be an chapter
- Added empty constants.xml appendix
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/book.xml diff -u /dev/null phpdoc/en/reference/haru/book.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/book.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl, external --> +<!-- State: experimental --> + +<book xml:id="book.haru" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Haru PDF</title> + <titleabbrev>haru</titleabbrev> + + <!-- {{{ preface --> + <preface xml:id="intro.haru"> + &reftitle.intro; + <para> + The PECL/haru extension provides bindings for Haru Free PDF Library - free, + cross platform, opensource software library for generating PDF files. + </para> + <para> + You can find the library here: <link + xlink:href="http://libharu.sourceforge.net">http://libharu.sourceforge.net</link>. + </para> + &warn.experimental; + </preface> + <!-- }}} --> + + &reference.haru.setup; + &reference.haru.constants; + &reference.haru.examples; + &reference.haru.builtin; + + &reference.haru.haruexception; + &reference.haru.harudoc; + &reference.haru.harupage; + &reference.haru.harufont; + &reference.haru.haruimage; + &reference.haru.haruencoder; + &reference.haru.haruoutline; + &reference.haru.haruannotation; + &reference.haru.harudestination; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/constants.xml diff -u /dev/null phpdoc/en/reference/haru/constants.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/constants.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="haru.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/examples.xml diff -u /dev/null phpdoc/en/reference/haru/examples.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/examples.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="haru.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="haru.examples-basics"> + <title>Basic PECL/haru example</title> + <para> + <example> + <title>Fancy "Hello world"</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$doc = new HaruDoc; + +$doc->setPageMode(HaruDoc::PAGE_MODE_USE_THUMBS); /* show thumbnails */ + +$page = $doc->addPage(); /* add page to the document */ +$page->setSize(HaruPage::SIZE_A4, HaruPage::LANDSCAPE); /* set the page to use A4 landscape format */ + +$courier = $doc->getFont("Courier-Bold"); /* we'll use the bundled font a few lines below */ + +$page->setRGBStroke(0, 0, 0); /* set colors */ +$page->setRGBFill(0.7, 0.8, 0.9); +$page->rectangle(150, 150, 550, 250); /* draw a rectangle */ + +$page->fillStroke(); /* fill and stroke it */ + +$page->setDash(array(3, 3), 0); /* set dash style for lines at this page */ +$page->setFontAndSize($courier, 60); /* set font and size */ + +$page->setRGBStroke(0.5, 0.5, 0.1); /* set line color */ +$page->setRGBFill(1, 1, 1); /* set filling color */ + +$page->setTextRenderingMode(HaruPage::FILL_THEN_STROKE); /* fill and stroke text */ + +/* print the text */ +$page->beginText(); +$page->textOut(210, 270, "Hello World!"); +$page->endText(); + +$doc->save("/tmp/test.pdf"); /* save the document into a file */ + +?> +]]> + </programlisting> + </example> + </para> + <para> + Open the result document in your favourite PDF viewer and you should see a + light-blue rectangle and white "Hello World!" on it. + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/setup.xml diff -u /dev/null phpdoc/en/reference/haru/setup.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/setup.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="haru.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="haru.requirements"> + &reftitle.required; + <para> + You need to install libharu first to be able to use PECL/haru. + PECL/haru is tested with libharu 2.0.8, older versions might or might not + work for you. + PECL/haru also requires PHP 5.1.3 or newer. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + <section xml:id="haru.installation"> + &reftitle.install; + <para> + &pecl.info; + <link + xlink:href="&url.pecl.package;haru">&url.pecl.package;haru</link>. + </para> + <para> + The latest PECL/haru Win32 DLL can be downloaded + here: + <link + xlink:href="&url.pecl.win.ext;php_haru.dll">php_haru.dll</link>. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="haru.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="haru.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/builtin.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/haru/builtin.xml diff -u phpdoc/en/reference/haru/builtin.xml:1.2 phpdoc/en/reference/haru/builtin.xml:1.3 --- phpdoc/en/reference/haru/builtin.xml:1.2 Wed Jun 20 22:24:31 2007 +++ phpdoc/en/reference/haru/builtin.xml Sat Dec 22 16:26:47 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> - <section xml:id="haru.builtin" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3 $ --> + <chapter xml:id="haru.builtin" xmlns="http://docbook.org/ns/docbook"> <title>Builtin Fonts And Encodings</title> <section xml:id="haru.builtin.fonts"> <title>Builtin Fonts</title> @@ -475,7 +475,7 @@ </tgroup> </table> </section> - </section> + </chapter> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/book.xml diff -u /dev/null phpdoc/en/reference/haru/book.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/book.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl, external --> +<!-- State: experimental --> + +<book xml:id="book.haru" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Haru PDF</title> + <titleabbrev>haru</titleabbrev> + + <!-- {{{ preface --> + <preface xml:id="intro.haru"> + &reftitle.intro; + <para> + The PECL/haru extension provides bindings for Haru Free PDF Library - free, + cross platform, opensource software library for generating PDF files. + </para> + <para> + You can find the library here: <link + xlink:href="http://libharu.sourceforge.net">http://libharu.sourceforge.net</link>. + </para> + &warn.experimental; + </preface> + <!-- }}} --> + + &reference.haru.setup; + &reference.haru.constants; + &reference.haru.examples; + &reference.haru.builtin; + + &reference.haru.haruexception; + &reference.haru.harudoc; + &reference.haru.harupage; + &reference.haru.harufont; + &reference.haru.haruimage; + &reference.haru.haruencoder; + &reference.haru.haruoutline; + &reference.haru.haruannotation; + &reference.haru.harudestination; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/constants.xml diff -u /dev/null phpdoc/en/reference/haru/constants.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/constants.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="haru.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/examples.xml diff -u /dev/null phpdoc/en/reference/haru/examples.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/examples.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="haru.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="haru.examples-basics"> + <title>Basic PECL/haru example</title> + <para> + <example> + <title>Fancy "Hello world"</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$doc = new HaruDoc; + +$doc->setPageMode(HaruDoc::PAGE_MODE_USE_THUMBS); /* show thumbnails */ + +$page = $doc->addPage(); /* add page to the document */ +$page->setSize(HaruPage::SIZE_A4, HaruPage::LANDSCAPE); /* set the page to use A4 landscape format */ + +$courier = $doc->getFont("Courier-Bold"); /* we'll use the bundled font a few lines below */ + +$page->setRGBStroke(0, 0, 0); /* set colors */ +$page->setRGBFill(0.7, 0.8, 0.9); +$page->rectangle(150, 150, 550, 250); /* draw a rectangle */ + +$page->fillStroke(); /* fill and stroke it */ + +$page->setDash(array(3, 3), 0); /* set dash style for lines at this page */ +$page->setFontAndSize($courier, 60); /* set font and size */ + +$page->setRGBStroke(0.5, 0.5, 0.1); /* set line color */ +$page->setRGBFill(1, 1, 1); /* set filling color */ + +$page->setTextRenderingMode(HaruPage::FILL_THEN_STROKE); /* fill and stroke text */ + +/* print the text */ +$page->beginText(); +$page->textOut(210, 270, "Hello World!"); +$page->endText(); + +$doc->save("/tmp/test.pdf"); /* save the document into a file */ + +?> +]]> + </programlisting> + </example> + </para> + <para> + Open the result document in your favourite PDF viewer and you should see a + light-blue rectangle and white "Hello World!" on it. + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/haru/setup.xml diff -u /dev/null phpdoc/en/reference/haru/setup.xml:1.2 --- /dev/null Sat Dec 22 16:26:47 2007 +++ phpdoc/en/reference/haru/setup.xml Sat Dec 22 16:26:47 2007 @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="haru.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="haru.requirements"> + &reftitle.required; + <para> + You need to install libharu first to be able to use PECL/haru. + PECL/haru is tested with libharu 2.0.8, older versions might or might not + work for you. + PECL/haru also requires PHP 5.1.3 or newer. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + <section xml:id="haru.installation"> + &reftitle.install; + <para> + &pecl.info; + <link + xlink:href="&url.pecl.package;haru">&url.pecl.package;haru</link>. + </para> + <para> + The latest PECL/haru Win32 DLL can be downloaded + here: + <link + xlink:href="&url.pecl.win.ext;php_haru.dll">php_haru.dll</link>. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="haru.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="haru.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/haru/builtin.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/haru/builtin.xml diff -u phpdoc/en/reference/haru/builtin.xml:1.2 phpdoc/en/reference/haru/builtin.xml:1.3 --- phpdoc/en/reference/haru/builtin.xml:1.2 Wed Jun 20 22:24:31 2007 +++ phpdoc/en/reference/haru/builtin.xml Sat Dec 22 16:26:47 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> - <section xml:id="haru.builtin" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3 $ --> + <chapter xml:id="haru.builtin" xmlns="http://docbook.org/ns/docbook"> <title>Builtin Fonts And Encodings</title> <section xml:id="haru.builtin.fonts"> <title>Builtin Fonts</title> @@ -475,7 +475,7 @@ </tgroup> </table> </section> - </section> + </chapter> <!-- Keep this comment at the end of the file Local variables: