mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Merge branch 'v5-develop' into preview
This commit is contained in:
commit
f0581e5d4c
@ -30,15 +30,15 @@ trait PdfMaker
|
||||
{
|
||||
$pdf = new Snappdf();
|
||||
|
||||
if (config('ninja.snappdf_chromium_path')) {
|
||||
$pdf->setChromiumPath(config('ninja.snappdf_chromium_path'));
|
||||
}
|
||||
|
||||
if (config('ninja.snappdf_chromium_arguments')) {
|
||||
$pdf->clearChromiumArguments();
|
||||
$pdf->addChromiumArguments(config('ninja.snappdf_chromium_arguments'));
|
||||
}
|
||||
|
||||
if (config('ninja.snappdf_chromium_path')) {
|
||||
$pdf->setChromiumPath(config('ninja.snappdf_chromium_path'));
|
||||
}
|
||||
|
||||
$html = str_ireplace(['file:/', 'iframe', '<embed', '<embed', '<object', '<object', '127.0.0.1', 'localhost'], '', $html);
|
||||
|
||||
$generated = $pdf
|
||||
|
Loading…
Reference in New Issue
Block a user