Git Product home page Git Product logo

simplepdf's Introduction

SimplePdf

Latest Stable Version

Internal PDF geometry (and therefore ZendPdf as well) uses "points" (1/72 of an inch), with [0, 0] being the bottom left corner of a page. This library, which extends ZendPdf, changes this by using arbitrary units (e.g. inches or centimeters) and going from top-to-bottom, which makes much more sense from a user's persepective. Also, very basic functionality has been added, like text alignment, margins and word wrap.

SimplePdf is PSR-0, PSR-1 and PSR-2 compliant.

Semantic Versioning is used for releases / tags.

Requirements

  • PHP 5.3 or newer
  • ZendPdf component, which it extends

Installation

The easiest way to install is using Composer / Packagist by adding this to you composer.json file:

"require": {
    "robbertkl/simplepdf": "dev-master"
}

Alternatively, you could manually include/autoload the appriate files from the classes/ dir.

Documentation

See the examples/ dir for usage examples. Also, check out the API documentation, generated using ApiGen.

Known Limitations

  • The extension is not complete at all; only specific methods (to accommodate my needs) have been overridden to handle custom units + top-to-bottom geometry
  • The word-wrap code is still pretty basic; for example, it doesn't do word-breaking or handle certain border cases
  • Unfortunately, ZendPdf was kicked out of ZF2, and doesn't seem to be maintained (although it still works fine)

Authors

License

SimplePdf is published under the MIT License.

simplepdf's People

Contributors

robbertkl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mabujo

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.