954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

UTF-8 and PDF

Hi,
I need to generate a PDF report from my MySql. The problem appears when we want to write in Persian. The PDFlib appearently doesn't support UTF-8. I also checed UFPDF. It neither work well.
Any advice?
I use:
PHP Version 4.3.7
mysql: Client API version 3.23.49

om1d_h
Newbie Poster
7 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

I am also interested in UTF-8 support PDFlib Lite since I need to write Cyrillic text into a PDF.

Any suggestions please?

haggis-man
Newbie Poster
19 posts since Sep 2009
Reputation Points: 10
Solved Threads: 1
 

For Cyrillic - have you tried FPDF?

http://www.phpclasses.org/browse/package/421.html

I haven't tried it with Cyrillic, but I think it should work.


For Persian, does the PDF_load_font() function help in any way?

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,800 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

Many thanks for that - I will have a look at FPDF

haggis-man
Newbie Poster
19 posts since Sep 2009
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You