Yes, and again, perfect answer.
Works nice since I turned magic quotes off
I can across another problem though.
the § symbol does not show up correctly. Now I have seen that you can replace unlikely characters with special ones, but I do not understand what exactly is ment by this:
Quote:
The Euro character seems to be outside the normal character set, so you need to replace one of your 0->255 characters with it, using the options of the selectFont command (noting that these only work the first time that the function is called for each font). Here is an example which replaces the "!" character:
<?php
include ('class.ezpdf.php');
$pdf =& new Cezpdf('a4');
$euro_diff = array(33=>'Euro');
$pdf->selectFont('./fonts/Helvetica.afm',
array('encoding'=>'WinAnsiEncoding','differences'= >$euro_diff));
$pdf->ezText('**!!!!!!**',100,array('justification'=>'f ull'));
$pdf->ezText($pdf->messages,12);
if (isset($d) && $d){
$pdfcode = $pdf->ezOutput(1);
$pdfcode = str_replace("\n","\n<br>",htmlspecialchars($pdfcod e));
echo '<html><body>';
echo trim($pdfcode);
echo '</body></html>';
} else {
$pdf->ezStream();
}
?>
Note that this is most likely not the actual character that you wish to replace, but here is some information which was sent to me by "Balu":
Just for the reference (FAQ? :-), I've found more references about using the Euro in ASCII-Tables:
http://www.dragoman.org/euro/
replaces the "^"-char (0x5E) by the Euro-Symbol (U+20AC) and calls the new Table "Euro-ASCII"
http://lists.w3.org/Archives/Public/...7/01-euro.html
replaces the "|" (0x7C) by the Euro
http://www.alphaquark.com/Traduction/En_Euro.htm
replaces the ascii-char at 128 (0x80)
My Linux-console (vim + xxd) uses 0xa4...
|
Now I understand that basically I could replace a value of the font array, with another character with this line
But what I really do not get is, how to find out, which value represents what character, and especially what the name of this character would be.
Something like this???
And of course I would not want to replace the "!", since that is commonly needed, rather something very unlikely.
Thanks for the outstanding help,
Max