News:

Looking for documentation? Take a look on our wiki

Main Menu

PDF invoice empty. Why? [Italian translation??]

Started by jack19, September 25, 2012, 17:45:35 PM

Previous topic - Next topic

jack19

Hi,
PDF files are not generated completely. (in email notification).
Prints only the header and footer. (see attachment).
while in BE displays a blank page (actually dark gray). (see)
Any idea.
Best regards.
Joomla 2.5.7
VM 2.0.10

[attachment cleanup by admin]
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

bytelord

Hello,

Did your VM AIO extensions pack installed correctly? Do you use any UTF-8 language except en-gb?
Could you take a look inside joomla error log to see if any errors logged?
In general vm 2 uses tcpdf library to produce the pdf invoices.

Regards

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!

jack19

Quote from: bytelord on September 25, 2012, 22:27:25 PM
Hello,

Did your VM AIO extensions pack installed correctly? Do you use any UTF-8 language except en-gb?
Could you take a look inside joomla error log to see if any errors logged?
In general vm 2 uses tcpdf library to produce the pdf invoices.

Regards
Hi,
no Joomla errors,
this is the language I use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-it" lang="it-it" dir="ltr" >
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

Regards
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

bytelord

#3
Hello,

So is it working when to select en-gb (e.g login in the be with en-gb lang and view an order)??

If yes, try this one for tcpdf supporting utf-8 language
http://forum.virtuemart.net/index.php?topic=99347.msg329743#msg329743

Regards
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!

jack19

Quote from: bytelord on September 26, 2012, 13:05:14 PM
Hello,

So is it working when to select en-gb (e.g login in the be with en-gb lang and view an order)??

If yes, try this one for tcpdf supporting utf-8 language
http://forum.virtuemart.net/index.php?topic=99347.msg329743#msg329743

Regards
Hi bytelord,
first of all thanks for the reply.
I found what the problem is. (But that hard to find).
In Italian the word city is translated as città that contains à character that is not ANSI.
Replacing, in the Italian translation, the word città with the equivalent citt&agrave; the problem is solved.
The same needs to be done with the word Q.tà (Q.ty) with the equivalent Q.t&agrave.
Everything else you can do unless you replace the characters, because they affect other part of the VM component.
These are the only two words that currently appear in the PDF.
It may be necessary to do the same thing with the other possible words which may be in PDF.
Sorry for bad English.
:D
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

bytelord

Hello,

You could try to use utf-8 for the tcpdf conversion. There are similar issues with some slovak characters as i remember. but if this is working for you, then good work :)
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!

jack19

Quote from: bytelord on September 26, 2012, 19:55:48 PM
Hello,

You could try to use utf-8 for the tcpdf conversion. There are similar issues with some slovak characters as i remember. but if this is working for you, then good work :)
Hello,
I tried the solutions you have suggested in the post, but neither of them worked in my case.
I'll try to use a replace function.  :-\
Regards

Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

jack19

Quote from: bytelord on September 26, 2012, 19:55:48 PM
Hello,

You could try to use utf-8 for the tcpdf conversion. There are similar issues with some slovak characters as i remember. but if this is working for you, then good work :)
Hello,
strange, very strange.
This problem only occurs on this translation
COM_VIRTUEMART_ORDER_PRINT_QTY="Q.tà"
that for some reason must be
COM_VIRTUEMART_ORDER_PRINT_QTY="Q.t&agrave;"
all other accented characters do not create problem.

The characteristic of this word is its in bold, and appears in the headers of detail products of invoice.
Rgds
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

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!

jack19

Quote from: bytelord on September 27, 2012, 12:34:54 PM
Hello again,

Some special characters as you say. Take a look here: http://forum.virtuemart.net/index.php?topic=106463.msg355250#msg355250
http://forum.virtuemart.net/index.php?topic=106463.msg355310#msg355310

Regards
Hi bytelord,
since it only occurs on this word, so I leave the translation:
COM_VIRTUEMART_ORDER_PRINT_QTY="Q.t&agrave;"
witten in bold.

Words like
città, più, può, sì etc.
do not generate the problem.
Only that these words are written normal, not bold.
Thank You for reply.
Rgds.
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a

bytelord

yes,

there are some special characters 2-3 i think, is like the slovak one i was remember from previous posts.

But you solve it :)

great!
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!

jack19

Quote from: bytelord on September 27, 2012, 13:00:09 PM
yes,

there are some special characters 2-3 i think, is like the slovak one i was remember from previous posts.

But you solve it :)

great!
Hello,
for information see attach.

[attachment cleanup by admin]
Best regards

Joomla! 2.5.9
Virtuemart 2.0.18a