2017 © Pedro Peláez
 

library revpdf-lib

PDF generating library

image

rev42/revpdf-lib

PDF generating library

  • Saturday, June 28, 2014
  • by rev42
  • Repository
  • 1 Watchers
  • 2 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

RevPDFLib Build Status

RevPDFLib provides the building block to create PDF file for RevPDF web application., (*1)

RevPDFLib parses an XML file (build manually or using RevPDF) and generates PDF file. This library can be used as a standalone application., (*2)

RevPDFLib takes a XML file as an input and output a PDF file., (*3)

"Hello World" example:, (*4)

<?xml version="1.0" encoding="UTF-8"?>
<RevPDFLib>
    <font name="courier" size="16" textColor="#3366FF" style="B" />
    <details height="20" isVisible="1" backgroundColor="#FFF">
        <textfield format="text" x="0" y="0" height="10" width="40" border="1" forecolor="#3366FF" backcolor="#FFFF00" zindex="0">
            <font isUnderline="false" isBold="true" isItalic="true" fontName="courier" size="14" />
            <![CDATA[Hello World!]]>
        </textfield>
    </details>
</RevPDFLib>

Calling RevPDFLib is really easy:, (*5)

defined('BASE_DIR') || define('BASE_DIR', dirname(__file__) . '/../');
require BASE_DIR . 'vendor/autoload.php';

$lib = new RevPDFLib\Application();
$data = simplexml_load_file('helloworld.xml');
$lib->export($data);

Please read the MANUAL for further explanations (how to install, how to create a compatible xml file...), (*6)

The Versions