Giter Club home page Giter Club logo

revpdf-lib's Introduction

RevPDFLib provides the building block to create PDF file for RevPDF web application.

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

RevPDFLib takes a XML file as an input and output a PDF file.

"Hello World" example:

<?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:

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...)

revpdf-lib's People

Contributors

ocornu-mediastay avatar rev42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

revpdf-lib's Issues

Installation composer revpdf

Bonjour, une exception se produit lors de l'installation via composer

[RuntimeException]

Failed to execute git clone "https://github.com/jwage/EasyCSV.git" "C:\wamp\ww
w\rev42-RevPDFLib-a950c0c\vendor/EasyCSV" && cd "C:\wamp\www\rev42-RevPDFLib-a95
0c0c\vendor/EasyCSV" && git checkout "master" && git reset --hard "master"

RevPDF

When could we have a betacopy or test version of revpdf ?
cordialement
PICHAVANT Cédric

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.