Solved

converting unicode text to pdf using php

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 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

22 Experts available now in Live!

Get 1:1 Help Now