2017 © Pedro PelĂĄez
 

fuel-package fuel-pdf

Fuel PDF package for dfferent PDF libraries

image

indigophp/fuel-pdf

Fuel PDF package for dfferent PDF libraries

  • Wednesday, January 15, 2014
  • by mark.sagikazar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 40 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Fuel PDF package

Fuel wrapper for Indigo PDF, (*1)

Install

Via Composer, (*2)

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



## Configuration ``` php return array( 'instances' => array( 'default' => function () { $options = array( 'orientation' => 'P', ); $config = array( 'a_meta_charset' => 'UTF-8', 'a_meta_dir' => 'ltr', 'a_meta_language' => 'en', 'w_page' => 'page', ); return new Indigo\Pdf\Adapter\TcpdfAdapter($options, $config); }, 'advanced' => function () { $options = array( 'orientation' => 'P', ); $config = array( 'bin' => '/usr/bin/wkhtmltopdf', 'tmp' => sys_get_temp_dir(), ); return new Indigo\Pdf\Adapter\WkhtmltopdfAdapter($options, $config); } ), 'default' => 'default', );

Usage

``` php $pdf = \Pdf::forge('default');, (*4)

// Later in your code $pdf = \Pdf::instance('default');, (*5)



## Advanced usage ``` php $options = array( 'orientation' => 'P', ); $config = array( 'bin' => '/usr/bin/wkhtmltopdf', 'tmp' => sys_get_temp_dir(), ); $instance = Indigo\Pdf\Adapter\Wkhtmltopdf($options, $default); $pdf = \Pdf::forge('non_existent', $instance); // Later in your code $pdf = \Pdf::instance('non_existent');

Credits

License

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

The Versions

15/01 2014

dev-master

9999999-dev https://indigophp.com

Fuel PDF package for dfferent PDF libraries

  Sources   Download

MIT

The Requires

 

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

pdf wkhtmltopdf tcpdf dompdf mpdf

15/01 2014

dev-develop

dev-develop https://indigophp.com

Fuel PDF package for dfferent PDF libraries

  Sources   Download

MIT

The Requires

 

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

pdf wkhtmltopdf tcpdf dompdf mpdf