We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I ca't find the way to include site images and css in my pdf
On my controller:
$pdf = new PdfModel(); $pdf->setOption('filename', 'myfile.pdf'); $pdf->setOption('terminal',true); $pdf->setOption('paperSize', 'a4'); $pdf->setTemplate('my/model/view.phtml'); $pdf->setVariables(array( 'foo' => $bar, )); return $pdf;
On my View:
<head> <link rel="stylesheet" href="/css/bootstrap.min.css"> <link rel="stylesheet" href="/css/font-awesome.min.css"> </head> <body> <div class="hero"> <h3>My pdf file</h3> <img src="/img/logo.png" alt="My Logo"> </div> </body>
but no image or any css style is displayed.... What I am doing wrong? Please give me a hint. Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I ca't find the way to include site images and css in my pdf
On my controller:
On my View:
but no image or any css style is displayed.... What I am doing wrong? Please give me a hint. Thanks!
The text was updated successfully, but these errors were encountered: