rendererType = OutputTargetType.PDF;
} else {
rendererType = OutputTargetType.XML;
}
final OutputConfig renderOptions = new OutputConfig();
renderOptions.setFineDetail(Boolean.FALSE, SessionConfig.PRECEDENCE_DEFAULT);
renderOptions.setConsistentOutput(Boolean.TRUE, SessionConfig.PRECEDENCE_DEFAULT);
final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
rendererType, renderOptions, bos, session.getLogger(),
session.getGraphicServer());
new FOrayTarget(document, renderer, null, bos);