builder.setErrorHandler(errorHandler);
} catch (ParserConfigurationException e) {
throw NSForwardException._runtimeExceptionForThrowable(e);
}
InputStream is = new ByteArrayInputStream(document.getBytes(encoding));
ITextFontResolver resolver = renderer.getFontResolver();
for (String font : fontsFromConfiguration(configuration)) {
try {
resolver.addFont(font, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
} catch (Exception e) {
e.printStackTrace();
}
}