Closed bhuvaneshwaran closed 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
How this issue is related to PdfBundle or PHPPdf library?
issue cleared???????Thanks for ur reply
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