PrinterJob pj = PrinterJob.getPrinterJob();
PrintRenderer renderer = new PrintRenderer(pj);
- driver.setLogger (log);
+ driver.enableLogging(log);
driver.setRenderer(renderer);
driver.run();
pj.setCopies(1);
- driver.setLogger (log);
- driver.setRenderer (renderer);
- driver.render (input.getParser(), input.getInputSource());
+ driver.enableLogging(log);
+ driver.setRenderer(renderer);
+ driver.render(input.getParser(), input.getInputSource());
reportOK (response);
} catch (Exception ex) {
response.setContentType("application/pdf");
Driver driver = new Driver(foFile, out);
- driver.setLogger(log);
+ driver.enableLogging(log);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
response.setContentType("application/pdf");
Driver driver = new Driver();
- driver.setLogger(log);
+ driver.enableLogging(log);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(out);
driver.render(input.getParser(), input.getInputSource());