no-tcpdf, added barcode, qrcode libs

This commit is contained in:
Yuri Kuznetsov
2023-11-13 12:55:47 +02:00
parent 4c341344f2
commit d44a0c6243
16 changed files with 262 additions and 879 deletions
+13
View File
@@ -35,6 +35,8 @@ class AfterUpgrade
{
public function run(Container $container): void
{
$config = $container->getByClass(Espo\Core\Utils\Config::class);
$configWriter = $container->getByClass(InjectableFactory::class)
->create(ConfigWriter::class);
@@ -43,6 +45,17 @@ class AfterUpgrade
'phoneNumberInternational' => false,
]);
if ($config->get('pdfEngine') === 'Tcpdf') {
$configWriter->set('pdfEngine', 'Dompdf');
if (php_sapi_name() === 'cli') {
echo "Important. The 'Tcpdf' PDF engine has been removed from EspoCRM. " .
"Now PDF printing is handled by the 'Dompdf' engine. " .
"If you would like to continue using the 'Tcpdf', download and install a free extension: {link}. " .
"After that, set 'Tcpdf' at Administration > Settings > PDF Engine.";
}
}
$configWriter->save();
}
}