Results 1 to 7 of 7

Thread: [RESOLVED] Creating PDF: Character  before £

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Resolved [RESOLVED] Creating PDF: Character  before £

    Hello All!

    I have a small problem, I am using PHP with ezpdf (of which we have extended in-house), but every time I try to print out '£', it prints out '£'.

    I have attempted to use £ but the PDF engine does not like that.


    Does anyone have any ideas on how to combat this issue?

    Thanks in advance!
    ILMV

  2. #2

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Creating PDF: Character  before £

    Just some more info... I have done a load of Google searches with no answer, but this link did pop up on my travels.

    http://fyneworks.blogspot.com/2008/0...revisited.html

    It says how there is an error with JavaScript, but I cannot figure out how this relates to my problem with PHP vs EZPDF...

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Creating PDF: Character  before £

    It looks like a charset issue.
    Does this help?
    http://issues.ez.no/6574

  4. #4

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Creating PDF: Character  before £

    Hmmm, I have had a quick look through it, because we have extended it in-house it's going to be slightly different than the example provided.

    I will look into it in more depth when I can, thanks for the link pena!

  5. #5

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Creating PDF: Character  before £

    Right, before I had a chance to find the files of which we have extended, my colleague showed my this...

    PHP Code:
    utf8_decode() 
    Of which solved my problem!

    Thanks anyway pena!1

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Creating PDF: Character  before £

    So it was a charset issue.

    What's ezpdf like? And how does it compare to pdflib?

  7. #7

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: [RESOLVED] Creating PDF: Character  before £

    Well, when I first used a PDF engine it never worked to my satisfaction, so I used HTML2PDF, of which converts a standard HTML document to PDF, a little ropey, but it worked.

    EZPDF isn't so bad, cannot really compare it with PDFlib. EZPDF requires a lot of code to do such a simple task. Also it is limited (even our extended version) as far as lines and shading goes.

Posting Permissions

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



Click Here to Expand Forum to Full Width