qu-modules/qu-tcpdf

ZF2 module for TcPdf

Installs: 7 084

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 4

Open Issues: 0

Type:module

dev-master 2013-05-02 12:23 UTC

This package is not auto-updated.

Last update: 2024-04-13 12:06:48 UTC


README

ZF2 module for TcPdf

Release Notes

0.0.1-dev:

  • Initiation TcPdf in zf2

Requirements

Installation

  • Drag a folder into modules folder or vendor folder
  • Enable the module application.config.php

Installation by Composer

See the information if not known composer and clone git

cd YourFolderProject/
php composer.phar require "qu-modules/qu-tcpdf":"dev-master"

Integration

  $sm  = $this->getServiceLocator();
  $pdf = $sm->get('QuTcPdf');
  $pdf = $pdf->MyPdf();

  $pdf->setHeaderData($ln = 0,$lw = 0,$ht = 0,$hs = 0,$tc = array(255,255,255),$lc = array(255,255,255));
  $pdf->setFooterData($tc = array(255,255,255),$lc = array(255,255,255));
  $pdf->setPageOrientation($orientation='P', $autopagebreak='L', $bottommargin=-200);

  foreach($pages as $page){

    $pdf->AddPage();

    //Your function
    $this->multiPag($pdf,$page);

    $pdf->lastPage();

  }

  $pdf->Output('test.pdf','I');

References usage and conditions in TcPdf

  • View read me in QuTcPdf/src/TcPdf