2017 © Pedro Peláez
 

library simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

image

robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

  • Thursday, May 19, 2016
  • by robbertkl
  • Repository
  • 1 Watchers
  • 1 Stars
  • 820 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

SimplePdf

Latest Stable Version, (*1)

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., (*2)

SimplePdf is PSR-0, PSR-1 and PSR-2 compliant., (*3)

Semantic Versioning is used for releases / tags., (*4)

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:, (*5)

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

Alternatively, you could manually include/autoload the appriate files from the classes/ dir., (*6)

Documentation

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

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., (*8)

The Versions

19/05 2016

dev-master

9999999-dev https://github.com/robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbert Klarenbeek

pdf

19/05 2016

v1.0.2

1.0.2.0 https://github.com/robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbert Klarenbeek

pdf

09/12 2013

v1.0.1

1.0.1.0 https://github.com/robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbert Klarenbeek

pdf

08/12 2013

v1.0.0

1.0.0.0 https://github.com/robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbert Klarenbeek

pdf

07/12 2013

v0.1.0

0.1.0.0 https://github.com/robbertkl/simplepdf

Simple extension of ZendPdf, allowing top-to-bottom geometry using centimeters

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbert Klarenbeek

pdf