private static void PagePrinter(SafePrinter printer, Stream stream, int pagecount) { printer.StartPagePrinter(); try { WritePrinter(printer, stream); } finally { printer.EndPagePrinter(); } // Fix the page count in the final document for (int i = 1; i < pagecount; i++) { printer.StartPagePrinter(); printer.EndPagePrinter(); } }
private static void PagePrinter(SafePrinter printer, Stream stream) { printer.StartPagePrinter(); try { WritePrinter(printer, stream); } finally { printer.EndPagePrinter(); } }