Solved

converting unicode text to pdf using php

Posted on 2007-03-24
6
1,940 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Update from TABLE-A to TABLE-B 5 39
updating the date data 12 25
WP_Query multiple custom taxonomies 5 28
Checking if varaible is empty 6 32
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now