Hi, > Am 22.04.2015 um 13:59 schrieb Maruan Sahyoun <[email protected]>: > > Hi, > >> Am 22.04.2015 um 13:32 schrieb Manfred Pock <[email protected]>: >> >> 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): >> > > there is already an issue for that - > https://issues.apache.org/jira/browse/PDFBOX-2771 > <https://issues.apache.org/jira/browse/PDFBOX-2771> > > >> 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?
No it wasn't and I've fixed it accordingly. >> >> regarts, Manfred > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
