index.php
来自「国外很不错的一个开源OA系统Group-Office」· PHP 代码 · 共 107 行
PHP
107 行
<?php include("head.inc"); ?><div id="toc"><h2>On this page:</h2><ul><?php echo li_arrow() ?><a href="#overview">Overview</a></li><?php echo li_arrow() ?><a href="#features">Features</a></li><?php echo li_arrow() ?><a href="#limitations">Limitations</a></li><?php echo li_arrow() ?><a href="#hacking">Hacking</a></li></ul></div><a name="overview"> </a><h2>Overview</h2><p>dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly)CSS2.1 compliant HTML layout and rendering engine written in PHP. It isa style-driven renderer: it will download and read external stylesheets,inline style tags, and the style attributes of individual HTML elements. Italso supports most presentational HTML attributes.</p><p>PDF rendering is currently provided either by PDFLib (<ahref="http://www.pdflib.com">www.pdflib.com</a>) or by a bundledversion the R&OS CPDF class written by Wayne Munro (<ahref="http://www.ros.co.nz/pdf/">www.ros.co.nz/pdf</a>). (Someperformance related changes have been made to the R&OS class,however). In order to use PDFLib with dompdf, the PDFLib PECLextension is required. Using PDFLib improves performance and reducesthe memory requirements of dompdf somewhat, while the R&OS CPDF class,though slightly slower, eliminates any dependencies on external PDFlibraries.</p><p>dompdf was entered in the <ahref="http://www.zend.com/php5/contest/contest.php">Zend PHP 5Contest</a> and placed 20th overall.</p><p>Please note that dompdf works only with PHP 5. There are no plans fora PHP 4 port. If your web host does not offer PHP 4, I suggest either pesteringthem, or setting up your own PHP 5 box and using it to run dompdf. Your scriptson your web host can redirect PDF requests to your PHP 5 box.</p><a name="features"> </a><h2>Features</h2><ul><li style="list-style-image: url('images/star_01.gif');">handles mostCSS2.1 properties, including @import, @media & @page rules</li><li style="list-style-image: url('images/star_02.gif');">supports mostpresentational HTML 4.0 attributes</li><li style="list-style-image: url('images/star_03.gif');">supports externalstylesheets, either on the local machine or through http/ftp (viafopen-wrappers)</li><li style="list-style-image: url('images/star_04.gif');">supports complextables, including row & column spans, separate & collapsed bordermodels, individual cell styling, multi-page tables (no nested tables yet however)</li><li style="list-style-image: url('images/star_05.gif');">imagesupport (png, gif & jpeg)</li><li style="list-style-image: url('images/star_01.gif');">no dependencies onexternal PDF libraries, thanks to the R&OS PDF class</li><li style="list-style-image: url('images/star_02.gif');">inline PHPsupport. See the section on <a href="usage.php#inline">inline PHP</a> for details.</li></ul><a name="limitations"> </a><h2>Limitations (Known Issues)</h2><ul><li style="list-style-image: url('images/star_04.gif');">tables can not benested</li><li style="list-style-image: url('images/star_02.gif');">ordered lists arecurrently unsupported.</li><li style="list-style-image: url('images/star_03.gif');'">absolute & relativepositioning and floats do not work, yet.</li><li style="list-style-image: url('images/star_04.gif');">not particularlytolerant to poorly-formed HTML or CSS input (using Tidy first may help)</li><li style="list-style-image: url('images/star_03.gif');">large files cantake a while to render</li></ul><a name="hacking"> </a><h2>Hacking</h2><p>If you are interested in extending or modifying dompdf, please feel freeto contact me (Benj Carson) by email at <a style="white-space: nowrap"href="mailto:dompdf%40digitaljunkies%2eca">dompdf at digitaljunkies.ca</a>.Let me know what you'd like to try and I can perhaps point you to therelevant sections of the source. If you add some features, or fixsome bugs, please send me a patch and I'll include your changes in the maindistribution.</p><?php include("foot.inc");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?