use of com.lowagie.text.Document in project dhis2-core by dhis2.
the class GridUtils method toPdf.
/**
* Writes a PDF representation of the given list of Grids to the given OutputStream.
*/
public static void toPdf(List<Grid> grids, OutputStream out) {
if (hasNonEmptyGrid(grids)) {
Document document = openDocument(out);
for (Grid grid : grids) {
toPdfInternal(grid, document, 40F);
}
addPdfTimestamp(document, false);
closeDocument(document);
}
}
Aggregations