PDF and fonts problem
I have a problem with the compatibility of modules that I use to edit invoices that are generated to PDF.
The module works correctly on Prestashop 1.6.20.
On Thirty Bees there is a problem with fonts. In the module, you can not choose a font at all, as if the module had no access to any fonts. This is despite the fact that the fonts are in the module’s catalog.
Invoices generated for a PDF file with default settings have Times New Roman, but no Polish characters.
I have information from the developer:
“Our invoice module use tcpdf default library of Prestashop, so the font needs to be compatible with tcpdf.”
Maybe someone can guide me to what I need to do to make the module work.
dosbiner last edited by
tcpdf library still on thirtybees, but I can see some changes here https://github.com/thirtybees/thirtybees/commits/1.0.x/tools/tcpdf
is this changes make not compatible with this module? cc @Traumflug @datakick
I found one error related to this module in the server logs:
error 18.104.22.168 Fri Oct 26 10:58:35 2018 FastCGI: server “/etc/www/php/fpm/baumeister-php70” stderr: PHP message: PHP Notice: Undefined index: helveticai in /home/baumeister/mohikanin/vendor/tecnickcom/tcpdf/tcpdf.php on line 4318, referer: https://bau-meister.net.pl/admin /index.php?controller=AdminGwadvancedinvoicetemplate&id_gwadvancedinvoicetemplate=1&updategwadvancedinvoicetemplate&token=d5b432e58797
@dosbiner - thanks for showing interest.
I solved the problem by copying the contents of tools / tcddf from prestashop 1.6.20, without overwriting existing files.
Now the module can see the fonts and everything is ok.
dosbiner last edited by dosbiner
@arek_karnia glad to hear that. Happy selling