-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External css is not working for Tcpdf engine #65
Comments
IIRC external css is ont supported by tcpdf. 2014-07-19 11:55 GMT+02:00 cttech notifications@github.com:
|
If I use Mpdf then I get the following warning and pdf is not generated.. Notice (8): Undefined index: BODY [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14242] One the other hand if I use DomPdf then css is not working as like Tcpdf. |
Hence the advised engine is wkhtlm2pdf, although other engines should work
|
I have used configuration like
Configure::write('CakePdf', array(
'engine' => 'CakePdf.Tcpdf',
'options' => array(
'print-media-type' => true,
'outline' => true,
'dpi' => 96
),
'margin' => array(
'bottom' => 15,
'left' => 50,
'right' => 30,
'top' => 45
),
'orientation' => 'portrait',
'download' => true,
'permission' => true
));
After then I have added css with view file
echo $this->Html->css('company', array('fullBase' => true));
I have checked normal view and it's fine but when I am downloading pdf no css works!!
The text was updated successfully, but these errors were encountered: