Details
Description
A PDF file created on z/OS (an IBM mainframe os) has this
xref ð ù 0000000000 65535 f
the two chars are EBCDIC code for 0 9. The cause is this code that outputs in the system default encoding:
private void writeXrefRange(long x, long y) throws IOException { getStandardOutput().write(String.valueOf(x).getBytes()); getStandardOutput().write(SPACE); getStandardOutput().write(String.valueOf(y).getBytes()); getStandardOutput().writeEOL(); }
getBytes should use the specific charset, e.g. getBytes(Charsets.ISO_8859_1).