2017 © Pedro Peláez
 

library fpdf

A fork of itbz/fpdf to cater for my dependencies

image

9naquame/fpdf

A fork of itbz/fpdf to cater for my dependencies

  • Monday, January 4, 2016
  • by 9naquame
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 32 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

FPDF

Latest Stable Version, (*1)

Unofficial PSR-0 compliant version of the FPDF library, (*2)

This is version 1.7 with some minor changes:, (*3)

  • the library is namespaced in fpdf. To create instance use, (*4)

    $fpdf = new \fpdf\FPDF();, (*5)

  • directory structure follow the PSR-0 standard with src/ as root, (*6)

  • on error a RuntimeException is thrown instead on lib dramatically dying, (*7)

  • constructor is renamed __construct instead of FPDF, (*8)

Installing with composer

The package exists in the packagist repository as itbz/fpdf., (*9)

FPDF_EXTENDED

This package also contains some extensions that break backwards compatibility. To access the enhanced functionality use FPDF_EXTENDED instead of FPDF., (*10)

  • FPDF_EXTENDED expects all input to be UTF-8 encoded. FPDF natively expects all input to be ISO-8859-1 encoded and recommends the use of utf8_decode() when working with utf-8 encoded strings.
  • FPDF uses a somewath strange syntax for printing the total number of pages in the pdf. FPDF_EXTENDED defines two methods to handle this. TotalPagesNo() returns a string that will be replaced with total number of pages at output. PaginationStr() takes an optional delimiter (default '/') and retuns '{current page} / {total number of pages}'.
  • Calling AliasNbPages() is no longer necessary.
  • You may set an image path using setImagePath() and image() will be able to understand relative paths.
  • FPDF_EXTENDED gracefuly handles missing font styles. If a font is only defined (added) for one style (eg. bold) and you try to use another (eg. italic) this FPDF_EXTENDED fallbacks to the defined style (eg. bold). Regular styles takes precedence.
  • FPDF_EXTENDED defines moveX() and moveY() to move the cursor, in addition to FPDFs setX() and setY().
  • Subclasses of FPDF_EXTENDED may define draw(). Draw is called just before pdf is rendered. In this may actions can be taken just before pdf creation.
  • FPDF_EXTENDED defines GetPdf() as a shorthand for outputing the pdf as a raw string., (*11)

  • AS of version 1.7.2 FPDF_EXTENDED defines WriteXY() for writing to a specified position., (*12)

The Versions

04/01 2016

dev-master

9999999-dev http://www.fpdf.org/

A fork of itbz/fpdf to cater for my dependencies

  Sources   Download

no usage restriction

The Requires

  • php >=5.3.0

 

27/12 2013

1.7.2

1.7.2.0 http://www.fpdf.org/

Unofficial PSR-0 compliant version of the FPDF library

  Sources   Download

no usage restriction

The Requires

  • php >=5.3.0

 

18/05 2012

1.7.1

1.7.1.0 http://www.fpdf.org/

Unofficial PSR-0 compliant version of the FPDF library

  Sources   Download

The Requires

  • php >=5.3.0

 

13/05 2012

1.7.0

1.7.0.0 http://www.fpdf.org/

Unofficial PSR-0 compliant version of the FPDF library

  Sources   Download

The Requires

  • php >=5.3.0