SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Jun 2005
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    create pdf on the fly with unicode chars in it...

    I want to create a pdf on the fly with unicode characters(Urdu, Arabic...) in it.

    M done with English but cant display Urdu or arabic.
    [COLOR=SlateGray]
    Web Developer @ VeriQual

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Since PHP internally uses Latin-1 encoding, handling unicode is tricky. But if you're very very careful about it, you should be able to output a proper LaTeX document that you can then convert to PDF with a free command line converter.

  3. #3
    SitePoint Addict
    Join Date
    Jun 2005
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    Since PHP internally uses Latin-1 encoding, handling unicode is tricky. But if you're very very careful about it, you should be able to output a proper LaTeX document that you can then convert to PDF with a free command line converter.
    I am using php and I want to creat pdf using php. Then how can I use command line converter. The user will enter information in Arabic.
    [COLOR=SlateGray]
    Web Developer @ VeriQual

  4. #4
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MohsinAli View Post
    I am using php and I want to creat pdf using php. Then how can I use command line converter. The user will enter information in Arabic.
    well most of the people use fpdf to make pdf (it is not excellent and good and i use it as well)
    for unicode some body has extended it to TFPDF ..they have good documentation for static contents but poor documentation for dynamic contents...(even for english php-mysql i had to code all myself)
    for unicode i am also trying...but no 100% result

    but u can try site is fpdf.org


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •