VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Bremzy on August 15, 2012, 16:37:27 PM

Title: pdf invoice
Post by: Bremzy on August 15, 2012, 16:37:27 PM
Hello

I have a problem in the display characters č in pdf that send with email. In the administration (orders) I see all Characters.

i also have a problem with the display logo. Please see attachement.

I have latest version virtuemart 2.0.8e  and joomla 2.5.6.

Does anyone have any solutions?

Regards

[attachment cleanup by admin]
Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 16:54:30 PM
Hello,

Please take a look here.

https://forum.virtuemart.net/index.php?topic=99347.0

It will resolve PDF invoices characters issues for your language.

Hope it helps!

Bytelord
Title: Re: pdf invoice
Post by: Bremzy on August 15, 2012, 16:58:52 PM
I already tried this option but unfortunately does not work
Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 17:11:24 PM
Worked for me. Did you make all the changes decribed on that thread? Except from downloading the tcpdf library you should change the lines 32 and 33 inside the file libraries\joomla\document\pdf\pdf.php. I repeat that information because in the original post says inside fonts.php ...

This solution is for characters problem only and not for your logo issue that is not shown.
Title: Re: pdf invoice
Post by: Bremzy on August 15, 2012, 17:16:26 PM
yeah I've done all of these steps. I tried several times.
Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 17:28:42 PM
Hi,

i think this is a font issue. Is that slovak characters?
For more information you can search in tcpdf.org

i find 2 related topic on sourceforge.org. Please take a look

1. http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4392853
2. http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4385869

Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 17:34:11 PM
Also you can take a look on that post

http://forum.joomla.org/viewtopic.php?f=11&t=139738&start=0
Title: Re: pdf invoice
Post by: Bremzy on August 15, 2012, 22:51:22 PM
I did the test. I install a testing Joomla with virtuemart.
I went through all the steps to display the correct characters

First I noticed that there is no PDF file produced in library.
Although the those files were not there I can send a PDF Invoice.
I changed the right folders, and again install com_virtuemart.2.0.8e_ext_aio.
Then was folder with files created. change font in freesans but again without success.

Is it possible that there is any file which sets the font for pdf?

Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 23:07:58 PM
Hello,

The file you have to change is \joomla\document\pdf\fonts.php because it is responsible for creating the files. Can you check also the folder permissions where the pdf files are been produced? Sometimes if the AIO haven't been installed correctly you have issues with tcpdf, but if you tried again it have to be something else. When you reinstall AIO did you place inside the tcpdf folder the extra fonts?

The problem in characters are only with č or you have problem with other characters also? Is that slovak characters? Have you checked the other links i post in previous replies?

Thanks.
Title: Re: pdf invoice
Post by: Bremzy on August 15, 2012, 23:44:10 PM
Hi
yes i modify a file \joomla\document\pdf\pdf.php

Folder permission is 777

yes i m placed fonts in a tcpdf folder

problem is only with characters č.

This is Slovenian  characters. I checked the links. I have not tried yet.

if i delete a pdf.php file then it should not create pdf invoice?

Regards
Title: Re: pdf invoice
Post by: bytelord on August 15, 2012, 23:57:37 PM
Hello,

it think you have made everything good. The thing with the č is a font issue (is what they support on tcpdf.org & sourceforge project page) and is not UTF-8 encoding issue because everything else is been converted successfully .
On the links i post on previous posts they show how to rebuild a font to support Slovak character like č .make a try on that.
1. http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4392853
2. http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4385869

you can check here and try to make a custom solution for you.