acDompdfPlugin - 1.0.1

acDompdfPlugin - Allows you to use the DOMPDF library.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

acDompdfPlugin (for symfony 1.3/1.4)

Allows you to use easily the DOMPDF library (an HTML to PDF converter).

Installation

  • Install the plugin (via a package)

    symfony plugin:install acDompdfPlugin
    
  • Install the plugin (via a git clone)

    git clone git://gitorious.org/acdompdfplugin/acdompdfplugin.git acDompdfPlugin
    
  • Activate the plugin in the config/ProjectConfiguration.class.php

    class ProjectConfiguration extends sfProjectConfiguration
    {
      public function setup()
      {
        $this->enablePlugins(array(
          'sfDoctrinePlugin', 
          'acDompdfPlugin',
          '...'
        ));
      }
    }
  • Clear you cache

    symfony cc
    
  • Note : the DOMPDF library is included in the plugin (in its stable version 0.5.2)

Use

  • The DOMPDF class is autoloaded now, you can use it easily

    $pdf = new DOMPDF();
  • For more information on DOMPDF, see the project and documentation at DOMPDF Project