News:

Support the VirtueMart project and become a member

Main Menu

pdf invoice

Started by Bremzy, August 15, 2012, 16:37:27 PM

Previous topic - Next topic

Bremzy

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]

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Bremzy

I already tried this option but unfortunately does not work

bytelord

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.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Bremzy

yeah I've done all of these steps. I tried several times.

bytelord

#5
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

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Bremzy

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?


bytelord

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.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Bremzy

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

bytelord

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.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!