renderer.encodePdf(form, writer.getDocument());
writer.endDocumentInternal();
}
public static void getPdf(OutputStream output, FormData formData, String mode) throws IOException {
PdfResponseWriter writer = new PdfResponseWriter("UTF-8");
writer.startDocumentInternal(output);
FormFillerPdfRenderer renderer = new FormFillerPdfRenderer();
renderer.encodePdf(formData, writer.getDocument(),mode, null, null);
writer.endDocumentInternal();
}