catch(Exception e) {
getLogger().error("cannot create pdf writer instance",e);
//TC: FIXME! shouldn't we throw an exception here? what kind?
}
SAXiTextHandler handler = new SAXiTextHandler(document);
handler.setControlOpenClose(true);
this.contentHandler = handler;
}