News:

Support the VirtueMart project and become a member

Main Menu

The problem with the Virtuemart 3.0 PDF invoice (tcpdf)

Started by hadi.chakery, January 03, 2018, 14:36:03 PM

Previous topic - Next topic

hadi.chakery

hello
The problem with the Virtuemart 3.0 PDF invoice (tcpdf)
After updating Joomla to version 3.8.0 the document file has been deleted (/library/joomla/document)
and pdf invoice is displayed as follows :
_________________________________
  ??? ?????? 171022T97N0287 ????? ??? ?????? 1396-07-30 ????? ????? Same as invoice date ????? ?????  6ECC08  ????? ????? 1396-07-30 ????? ????? ?????? ??? - ????? ????? ??? ? ??? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? ???? ?????? ???? ?? 20,015 ?
  ??????  ??? ??
  ?? ?? ???
??? ????? ????? ????? ????? ????? ?????? ????? ???? ??
dolphi n-size -24
????? ????? ???? 24 ?????? ??? ????? ?????
10,000 ? 2 0 ? 0 ? 20,000 ?
???? ????? 0 ? 0 ? 20,000 ? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? 0 ? 15 ? 0 ? 0 ? ???? ?? 0 ? 0 ? 20,015 ?
????? ????? ????? ?????
1396-07-30 ?????? ??? ????? ?????
_________________________________


tcpdf version is " tcpdf_6_2_13 "
The site is Persian language.

And one more thing :

QuoteWhen order status updated from the backend or pdf invoice saved in safepath, controller runs a function that set the fonts again. So edit the file joomla_folder\components\com_virtuemart\controller\invoice.php

around lines 151, 152 change the font

$pdf->setHeaderFont(Array('freesans', '', 8 ));
$pdf->setFooterFont(Array('freesans', '', 10 ));

also around line 179, change also the font

$pdf->SetFont('freesans', '', 8, '', true);

There is no lines in the 'invoice.php' file.
please guide me.

jjk

The latest VirtueMart release 3.2.12, which can be downloaded at http://dev.virtuemart.net/projects/virtuemart/files (com_virtuemart.3.2.12.9708_extract_first.zip) includes the file com_tcpdf_1.0.4.zip, which actually is a version of tcpdf 6.2.12. Perhaps you should install that one.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

p30yaran

Quote from: hadi.chakery on January 03, 2018, 14:36:03 PM
hello
The problem with the Virtuemart 3.0 PDF invoice (tcpdf)
After updating Joomla to version 3.8.0 the document file has been deleted (/library/joomla/document)
and pdf invoice is displayed as follows :
_________________________________
  ??? ?????? 171022T97N0287 ????? ??? ?????? 1396-07-30 ????? ????? Same as invoice date ????? ?????  6ECC08  ????? ????? 1396-07-30 ????? ????? ?????? ??? - ????? ????? ??? ? ??? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? ???? ?????? ???? ?? 20,015 ?
  ??????  ??? ??
  ?? ?? ???
??? ????? ????? ????? ????? ????? ?????? ????? ???? ??
dolphi n-size -24
????? ????? ???? 24 ?????? ??? ????? ?????
10,000 ? 2 0 ? 0 ? 20,000 ?
???? ????? 0 ? 0 ? 20,000 ? ??? ?????? 2 (Flat rate otherwise)????? ??? ??? ???? 0 ? 15 ? 0 ? 0 ? ???? ?? 0 ? 0 ? 20,015 ?
????? ????? ????? ?????
1396-07-30 ?????? ??? ????? ?????
_________________________________


tcpdf version is " tcpdf_6_2_13 "
The site is Persian language.

And one more thing :

QuoteWhen order status updated from the backend or pdf invoice saved in safepath, controller runs a function that set the fonts again. So edit the file joomla_folder\components\com_virtuemart\controller\invoice.php

around lines 151, 152 change the font

$pdf->setHeaderFont(Array('freesans', '', 8 ));
$pdf->setFooterFont(Array('freesans', '', 10 ));

also around line 179, change also the font

$pdf->SetFont('freesans', '', 8, '', true);

There is no lines in the 'invoice.php' file.
please guide me.

hello, how are you
i use virtuemart last version and tcpdf last version
I have the same problem
Please help me to resolve problem
thanks

p30yaran


jjk

Does it help if you change the default font in VM administration at 'Shop' > 'Invoices/Emails' tab > Appearance > Default font to 'Free Mono'?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

p30yaran

#5
Quote from: jjk on February 03, 2019, 12:06:00 PM
Does it help if you change the default font in VM administration at 'Shop' > 'Invoices/Emails' tab > Appearance > Default font to 'Free Mono'?
hello,
thanks
i changed to free mono but
Unicode completely not used
I searched on the main site of tcpdf.org
https://tcpdf.org/examples/example_018/
The dejavusans font must be used
For this reason, I want to know how to add and use this font(dejavusans) in virtuemart 3
What should I do now
Which files to use to use this font (What changes should be made)

jjk

I never tried to add the dejavusans font myself, but I suppose it is similar to this description (the user added a font for Chinese):
https://forum.virtuemart.net/index.php?topic=135039.msg475262#msg475262

The folder where the fonts are located is: your-joomla-root-folder\libraries\tcpdf\fonts
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations