Typo3 Neos HTML to PDF -


i got problem when trying create pdf file. there other way create pdf beside using fpdf? because i'm struggling include class fpdf backend.

require_once(dirname(__file__).'/fpdf17/fpdf.php'); $pdf = new \backend\controller\fpdf17\fpdf(); $pdf->addpage(); $pdf->setfont('arial','b',16); $pdf->cell(40,10,'hello world!'); $pdf->output(); 

but code not working, got problem require.

and try tcpdf it's not working.

the error tcpdf i'm stuck on tcpdf examples page.

this code https://gist.github.com/anonymous/d346ff2d6fb9d1852925

anyhelp appreciated, thanks!

got answer

when trying call tcpdf class :

use :

$pdf = new \tcpdf(pdf_page_orientation, pdf_unit, pdf_page_format, true, 'utf-8', false);

instead of :

$pdf = new tcpdf(pdf_page_orientation, pdf_unit, pdf_page_format, true, 'utf-8', false);


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -