Support

Home Forums Event Espresso Premium Missing characters in PDF Invoice address

Missing characters in PDF Invoice address

Posted: July 10, 2014 at 6:22 am

Viewing 5 reply threads


Martin Prokop

July 10, 2014 at 6:22 am

Hi,

I am having some troubles with Czech characters in PDF invoice. I resolved kind of everything but address in PDF is without “special” characters. I use this:

$attendee_address != '' ? $pdf->Cell(100, 5, $attendee_address, 0, 1, 'L') : '';

Could you please help me?

Thanks,

Martin


Josh

  • Support Staff

July 10, 2014 at 8:01 am

Hi Martin,

If you look in the same template.php file in the invoice folder on around line 41 where it sets the $attendee_address variable you’ll see that runs the address through html_entity_decode(). I did some checking and it appears that the ISO8859-2 character set, used for Eastern European languages, is not supported by the html_entity_decode() function.

It may help to remove the html_entity_decode() function there and try downloading an invoice again. A suggested code change follows:

$attendee_address = stripslashes($attendee->address);


Martin Prokop

July 10, 2014 at 9:06 am

Thanks Josh, I tried your advise but it doesnt work. Any other tip? 🙁

Martin


Josh

  • Support Staff

July 10, 2014 at 10:01 am

Can you check to see if the custom fonts you have loaded up include the characters you are missing?


Martin Prokop

July 10, 2014 at 11:33 am

Yes, they do.


Lorenzo Orlando Caum

  • Support Staff

July 10, 2014 at 12:40 pm

Hi there Martin,

Could you provide some examples of the characters that are missing?

Also what custom fonts are you using and could you share a copy of your custom template for the invoice?

Thanks.


Lorenzo

Viewing 5 reply threads

The support post ‘Missing characters in PDF Invoice address’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso