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
Since wkhtmltopdf 0.12.6 it is required to pass the option --enable-local-file-access.
--enable-local-file-access
With CakePdf you can already set this flag via config/bootstrap.php for example:
config/bootstrap.php
Configure::write('CakePdf', [ 'engine' => [ 'className' => 'CakePdf.WkHtmlToPdf', 'binary' => '/usr/local/bin/wkhtmltopdf', 'options' => [ 'print-media-type' => true, 'outline' => true, 'dpi' => 96, 'enable-local-file-access' => true, // <-- This is the important part ], ], ]);
Without this option wkhtmltopdf will not load any images or css files.
This is not a bug report. The idea behind this issue is that people with the same problem can find this information via search engines. Sources:
The text was updated successfully, but these errors were encountered:
0790bf8
No branches or pull requests
Since wkhtmltopdf 0.12.6 it is required to pass the option
--enable-local-file-access
.With CakePdf you can already set this flag via
config/bootstrap.php
for example:Without this option wkhtmltopdf will not load any images or css files.
This is not a bug report. The idea behind this issue is that people with the same problem can find this information via search engines.
Sources:
The text was updated successfully, but these errors were encountered: