Hello
We launch as a dos command an application that listen incoming request to print
documents with PDFBOX:
PDDocument document = PDDocument.load(new URL(d[1]));
PrinterJob printJob = PrinterJob.getPrinterJob();
if (printer == null) {
System.out.println("printer " + d[0] + " not found. Default printer choosen");
PrintService printService =
PrintServiceLookup.lookupDefaultPrintService();
printJob.setPrintService(printService);
} else {
PrintService[] printServices = PrinterJob.lookupPrintServices();
for (PrintService printService : printServices) {
if (printService.getName().equals(printer)){
printJob.setPrintService(printService);
break;
}
}
document.print(printJob);
document.close();
Everything seems perfect.
But when I put this application as a Windows Service the document is Half of
its size.
Do you have an Idea ?
Thanks
Guy Smadja
Opticemarket.com
http://www.optic-box.com
Tel : 01 76 71 08 32