Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Php, Pdf, Utf-8

  1. Aug 7, 2005 #1
    I need to generate PDF files in Persian. My codes are in PHP and the server is runnig ver 4.3. The PDFLIB appearently doesn't support UNICODE. When I write something in Persian it shows only some nonsence charachters on screen. I also downloaded UFPDF, after using that class the charachters were shown correctly but still I have 2 problems:
    1. In persian in contrast to english the charachters are sticked togheter but the PDF, shows them seprated.
    2. The order in the PDF is left to right while it must become right to left.

    Do you know any other classes which support UTF-8?
    Or any advice to solve the 2 problems?
    Thanks
     
  2. jcsd
  3. Aug 8, 2005 #2

    dduardo

    User Avatar
    Staff Emeritus

    Always check the documenation. Do a search on the page for UTF-8

    http://php.mirrors.ilisys.com.au/manual/en/function.pdf-findfont.php [Broken]
     
    Last edited by a moderator: May 2, 2017
  4. Aug 9, 2005 #3
    I did, but not as well as you :D
    You know, all the php guys in Iran (www.Iranphp.net[/URL]) are killing themselves to solve the problem then I didn't think taking a look at the documatation would be useful.
    Anyway, I'm going to check it now.
    Thank you.
     
    Last edited by a moderator: Apr 21, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Php, Pdf, Utf-8
  1. PHP trouble (Replies: 1)

  2. PHP and osCommerce (Replies: 5)

  3. A PHP modification (Replies: 9)

  4. Need PHP coding help (Replies: 4)

Loading...