I have read the manual and read a number of posts in this forum, but I am just not getting it. How do I set up accented french characters to work with this class? From the manual I see this:
// and the first time that you call selectFont for each font, use
But don't understand how to set up the french accents (, , etc).
Can anyone help me?
Any thoughts on this?? I really need to get this happening soon.
For the other accented letters look for a iso-8859-15 conversion table.
Thanks a million Marco!!! Happy New Year.
OK, I guess that I am not getting it. Where exactly do I put this $diff array? Do I need to add it into the selectFont function is class.pdf.php? Or can I put it in my user function and call the values by index ($diff,$diff, etc)?
I have put it into both and call them like this:
pr".$diff."senter (for prsenter), but it doesn't print the character to the pdf, in fact there is nothing where that character should be (prsenter).
I have this as my selectFont declaration:
i have the same probleme withe ( e dans o) and the accent (') : the solution is in the iconv fonction
$texte = iconv('UTF-8', 'ASCII//TRANSLIT',$texte);
i'm sorry for this small error the good instruction is
$texte = iconv('UTF-8', 'ISO8859-1//TRANSLIT',$texte);
Thanks mdjalel. I used in spanish language and works good.
I've been struggling hours with all this, as my pdf didn't display the correct accented characters. Tryed iconv, the diff array, document encoding etc with no luck. And suddently I saw the light...
my path to the font folder wasn't correct!!! As I choose Helvetica and the displayed text looked like it, I didn't noticed it at first. Once the path fixed, it worked like a charm, no conversion whatsoever was needed.
For the new next ones in trouble, first be sure that the path to the font file is correct. This is easily done by changing the font face between two pdf generation and see if it responds like expected.