psliwa / PdfBundle

This bundle integrates Symfony2 with PHPPdf library.
http://ohey.pl
MIT License
120 stars 45 forks source link

Class 'ZendPdf\PdfDocument' not found #41

Closed bhuvaneshwaran closed 11 years ago

bhuvaneshwaran commented 11 years ago

in my controller use ZendPdf\PdfDocument,

public function pdfAction() { //$pdf = PdfDocument::load('path/to/pdf'); // require_once 'autoloader.php'; // Autoloader::init(); $pdf = new PdfDocument(); $pdf->pages[0] = new Page( Page::SIZE_A4 ); $pdf->pages[0]->setFont( Font::fontWithName( Font::FONT_HELVETICA ), 24 ); $pdf->pages[0]->drawText( 'Hello world!', 240, 400 ); $pdf->save( 'example.pdf') }

anyone can clear my issue

psliwa commented 11 years ago

How this issue is related to PdfBundle or PHPPdf library?

bhuvaneshwaran commented 11 years ago

issue cleared???????Thanks for ur reply