Page 1 of 1

Accented character (à) at end of line

Posted: 05 May 2016, 10:21
by gulp
Putting an "à" at the end of a line of an article seems to break the generating pdf that will result in a blank page.
It could be related to wrong charset and conversion.
http://stackoverflow.com/questions/4141 ... y-pdf-file

Re: Accented character (à) at end of line

Posted: 06 May 2016, 10:48
by gulp
I can't make the posted solution on stackoverflow, then I temporarly patched the plugin ("plugins/phocapdf/content/content.php") by adding this line before the "writeHTML()":

Code: Select all

		$documentOutput = str_replace(utf8_encode("à"),"à",$documentOutput);
		$pdf->writeHTML($documentOutput , true);
What could be the final solution ?

Re: Accented character (à) at end of line

Posted: 08 May 2016, 17:50
by Jan
Hi, do you use font, which includes this character? Try to change (for test only) the font if this will help :idea:

Jan

Re: Accented character (à) at end of line

Posted: 09 May 2016, 11:45
by gulp
Yes the font "helvetica" includes this character.
I know that "myriad" is the best solution for charset compatibility, how to add this font to the default list ?
What should be the correct name and "case" of the font ? (myriad, myriad pro, Myriad Pro, ...)
Sometime this is very confusing :wink:

Re: Accented character (à) at end of line

Posted: 09 May 2016, 21:42
by Jan
The the fonts - font packages need to be created for the PDF feature.

See the fonts here:
https://www.phoca.cz/download/category/34-phocapdf-fonts
Try to use dejavusans, freesans, freemono or freeserif, they should include the character

I even test the standard font and get no problem there :idea: see image:

Image