dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [Bug #775] Issue : Generate Chinese PDF


From: Doliforge
Subject: [Dolibarr-bugtrack] [Bug #775] Issue : Generate Chinese PDF
Date: Wed, 19 Jun 2013 14:36:06 +0200

Doliforge
Ce message ne s'affiche pas correctement?
mettez à jour vos préférences utilisateur.

Issue : Generate Chinese PDF

Dernières modifications

19/06/2013 14:36 (Europe/Paris)
Changements :
  • Status: 
OpenClosed

Répondre

État

 Détails
Submitted by:  Arnaud Lemonnier (sunchyny) Submitted on:  26/03/2013 04:24
Last Modified On:  10/06/2013 17:56 
Summary:  Issue : Generate Chinese PDF
Description:  Hello,
There is an issue on the last version V 3.3.1.

I installed this version on my computer and I
1. Activate mulitlanguage
2. Create a Command in chinese
3. Generate a PDF in Chinese for this command (Einstien model)

Chinese can be displayed correctly on PDF, but not in the right place. Chinese font and numbers are out of the field. Please check the attachment.

I did the same test with the version 3.3.0 -> same problem
I did the same test with the version 3.2.3 -> it's ok


You can check French Forum:
http://www.dolibarr.fr/forum/527-bugs-sur-la-version-stable-courante/40232-probleme-montant-apres-generation-pdf-chinois
Or English Forum
http://www.dolibarr.org/forum/12-howto--help/22399-chinese-font-support-in-pdf

I could give you my dolibarr on line login if you want to use my chinese command.

Thanks you for your help.
Step to reproduce bug:  1. Activate mulitlanguage
2. Create a Command in chinese
3. Generate a PDF in Chinese for this command (Einstien model)

I could give you my dolibarr on line login if you want to use my chinese command.
Version:  3.3.2 Category:  Other
Severity:  5 - Major OS Type/Version:  WIN XP Pro 2002 sp2
PHP version:  PHP/5.3.0 Database type and version:  MySQL5.0.45-community-nt
 Etat
Status:  Closed Assigned to:  HENRY Florian (fhenry)
Resolution:  Fixed 

Commentaires

Laurent Destailleur 10/06/2013 17:56
The bug has been corrected inside GIT sources
(http://www.github.com/Dolibarr/dolibarr).

So fix should be available with next stable release.
Laurent Destailleur 08/06/2013 15:27
Bug appears with TCPDF 5.9.187.
We must change into tcpdf.php file
// initialize subsetchars
$subsetchars = array();

with
// initialize subsetchars
$subsetchars = array_fill(0, 256, true);
HENRY Florian 19/04/2013 07:42
étât des lieux:
. Dolibarr 3.2.3 : version TCPDF = 5.9.098
. Dolibarr 3.3.1 : version TCPDF = 5.9.200
. version TCPDF courante = 6.0.010

solution:
In Dolibarr 3.3.1, replace the file ...\includes\tcpdf\tcpdf.php by tcpdf.php of version TCPDF 5.9.098.

And also use cid0cs as base font in file main.lang zh-CN instead of stsongstdlight witch is bug on some chinise caraters.

For those who use Traditionnal chinese (in fact only in Honk-Kong), use cid0ct as base font.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]