Hi,
add PDFBox 2.0 (trunk) i have the Problem that the € sign is not correct
encoded. I have take a look at PDFDocEncoding and maybe there is an bug
at the method getBytes(String text):
public static byte[] getBytes(String text)
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
for (char c : text.toCharArray())
{
Integer code = UNI_TO_CODE.get(c);
if (code == null)
{
out.write(0);
}
else
{
out.write(c);
}
}
return out.toByteArray();
}
This method look at the UNI_TO_CODE-Map for the required character, but
it does not write the founded encoded Integer to the outputstream, it
writes the character?
Is that correkt?
regarts, Manfred