}
}
private void renderDoc(PDFDocument doc, String uri, Map<?,?> properties,
OutputStream out) throws Exception {
PageSize pageSize = doc.options != null ? doc.options.pageSize : IHtmlToPdfTransformer.A4P;
transformer.transform(new ByteArrayInputStream(doc.content.getBytes("UTF-8")),
uri, pageSize, doc.headerFooterList,
properties, out);
}