Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OWFpdfBundle

https://github.com/Open-Wide/OWPublishAgendaBundle/raw/master/doc/images/Open-Wide_logo.png

Extension:OW Fpdf Bundle v1.0
Requires:Symfony 2
Author:Open Wide http://www.openwide.fr

Presentation

[FPDF] http://fpdf.org/

This bundle provides a complete system to create and display PDF.

Other features include user's choice of unit of measure, page format and margins; header and footer management; automatic page and line breaks and text justification; JPEG and PNG image support; and TrueType, Type1 and encoding support.

Installation

  1. Add FpdfBundle in your project

    • Via composer (TODO packagist)

      Add the bundle in your composer.json

      {
        "require": {
          "open-wide/fpdf-bundle": "dev-master"
        }
      }
    • Via a submodule

      mkdir -p src/OpenWide
      git submodule add https://github.com/Open-Wide/OwFpdfBundle.git src/OpenWide/FpdfBundle
  2. Enable the Bundle in your EzPublishKernel.php file:

    <?php
    // ezpublish/EzPublishKernel.php
    
    public function registerBundles()
    {
      $bundles = array(
        // ...
        new OpenWide\FpdfBundle\OpenWideFpdfBundle(),
      );
    }

Usage

$pdf = $this->container->get('ow_fpdf.fpdf');

Example

$pdf = $this->container->get('ow_fpdf.fpdf');

$pdf->AddPage();

$pdf->SetFont('Arial','B',16);

$pdf->Cell(40,10,'Hello World !');

$pdf->Output();

Other

FPDF documentation: http://fpdf.org/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

16 watching

Forks

Releases

Packages

Contributors

Languages