"UTF-8");
svgGenerator.stream(out, useCSS);
} else if (filter.type == FORMAT_PDF) {
com.itextpdf.text.Document document = new com.itextpdf.text.Document(new Rectangle(width, height));
PdfWriter writer = PdfWriter.getInstance(document, stream);
document.open();
PdfContentByte cb = writer.getDirectContent();
DefaultFontMapper fontMapper = new DefaultFontMapper();
BaseFontParameters fontParameters = new BaseFontParameters("LiberationSans-Regular.ttf");
fontParameters.encoding = BaseFont.IDENTITY_H;
fontMapper.putName("Dialog.plain", fontParameters);