Solved

converting unicode text to pdf using php

Posted on 2007-03-24
6
1,945 Views
Last Modified: 2008-03-25
I want to convert a HTML page into PDF document, the HTML page data is in Uni-COde, is there any php Class to do this ? I have found some class in phpclasses.org but they all work with only English text.

I am using php 4.x and i can not upgrade to php 5
0
Comment
Question by:Claudia_Presto
6 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 18787734
You might look into ufpdf (http://acko.net/blog/ufpdf) a extension to the commonly used fpdf (fpdf.org)
0
 

Author Comment

by:Claudia_Presto
ID: 18791555
this does not work in some UTF-8 languages, I'm asking this for Persian. Letters in this language are in 2 type of connected (attached) and alone, like arabic,
characters are like this : ا ب پ ت س ش ل و د
but they make words that the letters are connected : احسان  =  Ø§ Ø­ س ا Ù†
anyway, letters has 2-3 formats in words.
0
 

Author Comment

by:Claudia_Presto
ID: 18791565
please view my reply in unicode encoding format, browser view --> unicode (utf-8)
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 18792209
You can try http://tcpdf.sourceforge.net which is a improvemtn to fpdf with unicode-support, but never tested it with persian. Should have the same interface as ufpdf.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21207261
Forced accept.

Computer101
EE Admin
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question