super.setRenderingHints(hints);
}
private void prepareLayout() {
outputImage = ImageUtil.createCompatibleBufferedImage(DEFAULT_DOTS_PER_POINT, DEFAULT_DOTS_PER_POINT);
outputDevice = new Java2DOutputDevice(outputImage);
sharedContext = getSharedContext();
setDocument(doc, null, new XhtmlNamespaceHandler());
layout(this.width);
}