/** * Writes a PDF representation of the given Grid to the given OutputStream. */ public static void toPdf( Grid grid, OutputStream out ) { if ( isNonEmptyGrid( grid ) ) { Document document = openDocument( out ); toPdfInternal( grid, document, 0F ); addPdfTimestamp( document, true ); closeDocument( document ); } }
/** * 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 ); } }