document = new Document(pageSize, marginLeft, marginRight, marginTop, marginBottom);
imageCache = new RTFImageCache(resourceManager);
// rtf does not support PageFormats or other meta data...
final PatchRtfWriter2 instance = PatchRtfWriter2.getInstance(document, new NoCloseOutputStream(outputStream));
instance.getDocumentSettings().setAlwaysUseUnicode(true);
final String author = config.getConfigProperty
("org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.Author");
if (author != null)
{