2017 © Pedro Peláez
 

symfony-bundle dompdf-bundle

Integrates the Dompdf (0.8) library into a Symfony application

image

prezent/dompdf-bundle

Integrates the Dompdf (0.8) library into a Symfony application

  • Wednesday, August 16, 2017
  • by prezent
  • Repository
  • 5 Watchers
  • 1 Stars
  • 626 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 28 % Grown

The README.md

prezent/dompdf-bundle

Integrates Dompdf into a Symfony project., (*1)

Note

If you're looking to use DomPDF 0.6.2 or older, use the latest 1.x version of this bundle., (*2)

Installation

This bundle can be installed using Composer:, (*3)

$ php composer.phar require prezent/dompdf-bundle

Then, activate the bundle in your kernel:, (*4)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Prezent\DompdfBundle\PrezentDompdfBundle(),
    );
}

Configuration

Since Dompdf 0.7.0, settings in the dompdf_config.inc.php are no longer supported. Set your options at runtime:, (*5)

$pdf = $this->get('dompdf.twig');

$options = $pdf->getOptions();
$options->setFontDir($customDirectory);

$pdf->setOrientation('portrait');
$pdf->setPaperSize('a4');

If you have defined one of the following old settings, they will be mapped to the following Options:, (*6)

DOMPDF_CHROOT
-> Options->setChroot(DOMPDF_CHROOT);
DOMPDF_DIR
-> Options->setRootDir(DOMPDF_DIR);
DOMPDF_TEMP_DIR
-> Options->setTempDir(DOMPDF_TEMP_DIR);
DOMPDF_FONT_DIR
-> Options->setFontDir(DOMPDF_FONT_DIR);
DOMPDF_FONT_CACHE
-> Options->setFontCache(DOMPDF_FONT_CACHE);
DOMPDF_LOG_OUTPUT_FILE
-> Options->setLogOutputFile(DOMPDF_LOG_OUTPUT_FILE);
DOMPDF_DPI
-> Options->setDpi(DOMPDF_DPI);
DOMPDF_DEFAULT_PAPER_SIZE
-> Options->setDefaultPaperSize(DOMPDF_DEFAULT_PAPER_SIZE);
DOMPDF_ENABLE_REMOTE
-> Options->setIsRemoteEnabled(DOMPDF_ENABLE_REMOTE);
DOMPDF_ENABLE_PHP
-> Options->setIsPhpEnabled(DOMPDF_ENABLE_PHP);
DOMPDF_DEFAULT_FONT
-> Options->setDefaultFont(DOMPDF_DEFAULT_FONT);
DOMPDF_FONT_HEIGHT_RATIO
-> Options->setFontHeightRatio(DOMPDF_FONT_HEIGHT_RATIO);

The Versions

16/08 2017

dev-master

9999999-dev http://www.loungeroom.nl

Integrates the Dompdf (0.8) library into a Symfony application

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.
by Robert-Jan Bijl
by Terry Duivesteijn
by Prezent Internet BV

bundle symfony pdf dompdf

16/08 2017

2.0.0

2.0.0.0 http://www.loungeroom.nl

Integrates the Dompdf (0.8) library into a Symfony application

  Sources   Download

MIT

The Requires

 

by Robert-Jan Bijl
by Terry Duivesteijn
by Prezent Internet BV

bundle symfony pdf dompdf

16/08 2017

dev-LoungeRoom-master

dev-LoungeRoom-master http://www.loungeroom.nl

Integrates the Dompdf (0.8) library into a Symfony application

  Sources   Download

MIT

The Requires

 

by Robert-Jan Bijl
by Terry Duivesteijn
by Prezent Internet BV

bundle symfony pdf dompdf

11/11 2016

1.0.1

1.0.1.0 http://www.prezent.nl

Integrates the DOMPDF library into a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.
by Robert-Jan Bijl

bundle symfony pdf dompdf

11/11 2015

dev-dompdf0.7

dev-dompdf0.7 http://www.prezent.nl

Integrates the Dompdf library into a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.
by Robert-Jan Bijl

bundle symfony pdf dompdf

11/11 2015

1.0.0

1.0.0.0 http://www.prezent.nl

Integrates the DOMPDF library into a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.
by Robert-Jan Bijl

bundle symfony pdf dompdf