pdf generate in 2.6.0

Please report bugs here!

Moderator: Thorsten

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

pdf generate in 2.6.0

Post by ufgeorge »

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
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: pdf generate in 2.6.0

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

Hi,

I'll updated the TCPDF component for 2.6.1.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

For Japanese/Chinese/Korean PDF 2.6.1

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

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
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: pdf generate in 2.6.0

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

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
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: pdf generate in 2.6.0

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: pdf generate in 2.6.0

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

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: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

Hi,

now I can access your phpMyFAQ installation.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: pdf generate in 2.6.0

Post by UTAKA »

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
---------------------------------------
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: pdf generate in 2.6.0

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply