Hello,
i had the same problem with Lotus Notes. I patched the PdfWriter.java for
JRE 1.3 with source from an
older iText source. Here the old source that running in our Notes
Environment.
public void toPdf(OutputStream os) throws IOException {
// This code makes it more difficult to port the lib to
JDK1.1.x:
// StringBuffer off = new
StringBuffer("0000000000").append(offset);
// off.delete(0, off.length() - 10);
// StringBuffer gen = new
StringBuffer("00000").append(generation);
// gen.delete(0, gen.length() - 5);
// so it was changed into this:
String s = "0000000000" + offset;
StringBuffer off = new StringBuffer(s.substring(s.length()
- 10));
s = "00000" + generation;
String gen = s.substring(s.length() - 5);
if (generation == 65535) {
os.write(getISOBytes(off.append(' '
).append(gen).append(" f \n").toString()));
}
else
os.write(getISOBytes(off.append(' '
).append(gen).append(" n \n").toString()));
}
Christian Sowada
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/