pdf generate in 2.6.0

Please report bugs here!

Moderators: jason102178, Florian, JochenS, Thorsten

pdf generate in 2.6.0

Postby ufgeorge » Fri Jan 22, 2010 4:16 pm

Hi,

I ever ask about this in 2.5.x.
(viewtopic.php?f=3&t=10183)

I upgrade to 2.6.0. But still cannot show correct Chinese words in pdf.

George
ufgeorge
 
Posts: 27
Joined: Tue Dec 01, 2009 4:34 pm

Re: pdf generate in 2.6.0

Postby Thorsten » Sat Jan 23, 2010 12:07 pm

Hi,

I'll ckeck it. Which language do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby UTAKA » Sun Jan 24, 2010 8:31 am

Hi,

PhpMyFAQ 2.6.0 is TCPDF 4.6.009 (/inc/libs/tcpdf/).
This Version is BigSizePDF ,needed many fonts.
TCPDF4.6.027 (2009-08-24) supports unembedded TrueTypeUnicode Fonts.

Please TCPDF 4.6.009 --> Over 4.6.027.

NoW Stable release 4.8.026 2010-01-19....
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Sun Jan 24, 2010 10:13 am

Hi,

I'll updated the TCPDF component for 2.6.1.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

For Japanese/Chinese/Korean PDF 2.6.1

Postby UTAKA » Mon Jan 25, 2010 3:38 am

still cannot show correct Chinese(Japanese/Korean) words in pdf.. 2.6.1

For Japanese/Chinese/Korean PDF 2.6.1

Get Japanese/Chinese/Korean Fonts (tcpdf_4_8_026.zip)
http://sourceforge.net/projects/tcpdf/files/
OPEN tcpdf_4_8_026.zip
UP: ALL font/*
tcpdf\fonts\* ----> /inc/libs/tcpdf/fonts/*
Ex.
tcpdf\fonts\almohanad.ctg.z ----> /inc/libs/tcpdf/fonts/almohanad.ctg.z
tcpdf\fonts\almohanad.php ----> /inc/libs/tcpdf/fonts/almohanad.php
tcpdf\fonts\almohanad.z ----> /inc/libs/tcpdf/fonts/almohanad.z
・・・・・・・

1:Japanese(Arial Uni CID0) -> arialunicid0
2:Japanese(Kozuka Gorhic Pro M) -> kozgopromedium
3:Japanese(Kozuka Mincho Pro M) -> kozminproregular
4:Korean(HYSMyeongJoStd-Medium) -> hysmyeongjostdmedium
5:Traditional Chinese(MSungStd-Light) -> msungstdlight
6:Simplified Chinese(STSongStd-Light) ->stsongstdlight
--------------------------------
Edit File( Ex. Japanese_font : arialunicid0) ,and Save as UTF-8_format.
/inc/Faq.php
About Line3077
$pdf->SetFont('dejavusans', '', 12);
to
$pdf->SetFont('arialunicid0', '', 12);

About Line3083
$pdf->SetFont('dejavusans', '', 11);
to
$pdf->SetFont('arialunicid0', '', 11);


/inc/PMF_Export/Pdf.php
About Line102
$this->pdf->SetFont('dejavusans', '', 12);
to
$this->pdf->SetFont('arialunicid0', '', 12);


/inc/PMF_Export/Pdf/Wrapper.php
About Line420
$this->SetFont('dejavusans', 'B', 18);
to
$this->SetFont('arialunicid0', 'B', 18);

About Line444
$this->SetFont('dejavusans', '', 10);
to
$this->SetFont('arialunicid0', '', 10);

About Line444
$this->SetFont('dejavusans', 'B', 8);
to
$this->SetFont('arialunicid0', 'B', 8);

About Line451
$this->SetFont('dejavusans', '', 8);
to
$this->SetFont('arialunicid0', '', 8);
---------------------------------------
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 5:41 am

Hi,

I didn't fixed it for 2.6.1 because of time problems. The PDF issue is my No. 1 TODO for 2.6.2. Thanks for your hints!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby UTAKA » Mon Jan 25, 2010 6:49 am

Thanks Thorsten!

And need for Image(JPEG/GIF・・)

/inc/libs/tcpdf/cache


Premission 755 or 777
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 8:13 am

Hi,

I changed the fonts and there are still no Chinese characters in PDF... Does it work for you?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby UTAKA » Mon Jan 25, 2010 8:23 am

Last edited by UTAKA on Mon Jan 25, 2010 8:26 am, edited 1 time in total.
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 8:26 am

Hi,

I cannot access your server... it's not reachable for me.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby UTAKA » Mon Jan 25, 2010 8:34 am

Thorsten wrote:I cannot access your server... it's not reachable for me.
Thorsten

Uuuu... error 404 ? 505?
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 8:36 am

Hi,

I can access http://www.bbfriend.net but not http://phpmyfaq.bbfriend.net. It's just "server not found".

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 8:54 am

Hi,

now I can access your phpMyFAQ installation.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: pdf generate in 2.6.0

Postby UTAKA » Mon Jan 25, 2010 9:07 am

mumu...
I am not doing the control of access....
My Site is very NewSite(Since 2010/1/21).

Maybe.. DNS Propagation ?
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------
UTAKA
 
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org

Re: pdf generate in 2.6.0

Postby Thorsten » Mon Jan 25, 2010 11:59 am

Hi,

PDF export of Japanese, Korean and Chinese content works now. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
 
Posts: 14069
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Next

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests