X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2d3df955aea704950b250484b16a07b2fdc2d1f0..refs/pull/3238/head:/app/Entities/Tools/PdfGenerator.php diff --git a/app/Entities/Tools/PdfGenerator.php b/app/Entities/Tools/PdfGenerator.php index c2e8f3d4c..17a7da9f3 100644 --- a/app/Entities/Tools/PdfGenerator.php +++ b/app/Entities/Tools/PdfGenerator.php @@ -32,6 +32,7 @@ class PdfGenerator public function getActiveEngine(): string { $useWKHTML = config('snappy.pdf.binary') !== false && config('app.allow_untrusted_server_fetching') === true; + return $useWKHTML ? self::ENGINE_WKHTML : self::ENGINE_DOMPDF; } }