tcpdf - example-file works, but ci controller doesn't |
[eluser]Jan_1[/eluser]
A) Installed tcpdf (after a try with fpdf and mpdf, all the same problem) like I was told on 'TCPDF-CodeIgniter Integration' on CI-Wiki. B) Gave the right way in config/tcpdf.php: Code: $tcpdf['base_url'] = 'http://domain.com/system/application/3rdparty/tcpdf/'; C) Made a controller: Code: <?php But all I get is a white page. :o( buhuuuhuhu :o( D) When I point the browser directly on an example.php-file it works... E) Added Code: protected $cell_height_ratio = 1.25; //K_CELL_HEIGHT_RATIO; Could someone pleease give me a hint what to do?
[eluser]DJMOHNL[/eluser]
read this one: http://ellislab.com/forums/viewthread/133243/ Add ob_clean(); right before your $this->pdf->Output(...) an example would be: //Close and output PDF document ob_clean(); $this->pdf->Output('example_001.pdf', 'I'); |
Welcome Guest, Not a member yet? Register Sign In |