2017 © Pedro PelĂĄez
 

library pdf

PDF adapter for PDF libraries

image

indigophp/pdf

PDF adapter for PDF libraries

  • Tuesday, February 25, 2014
  • by mark.sagikazar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 34 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Indigo PDF

PDF adapters for PDF libraries., (*1)

Supported libraries: * WkHTMLtoPDF (native) * TCPDF, (*2)

Install

Via Composer, (*3)

``` json { "require": { "indigophp/pdf": "dev-master" } }, (*4)



## Usage ``` php use Indigo\Pdf\Adapter\TcpdfAdapter as Pdf; // Setup config array $options = array( 'orientation' => 'P', 'size' => 'A4' ); // Instantiate adapter $pdf = new Pdf($options); // Add a page $pdf->addPage('test.html', array('orientation' => 'L')); // Save it to file $pdf->save('test.pdf'); // Output to the browser $pdf->output('test.pdf');

Note: This is only a basic interface. If you need advanced usage, get the library itself and use that: $pdf->getInstance(), (*5)

Library documentation

Testing

bash $ phpunit, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

25/02 2014

dev-develop

dev-develop https://indigophp.com

PDF adapter for PDF libraries

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

15/01 2014

dev-master

9999999-dev https://indigophp.com

PDF adapter for PDF libraries

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr