**We are using pdfbox.1.8.2. Below piece of code cuts the left side of pdf while printing
PrinterJob job = PrinterJob.getPrinterJob();
Paper paper = job.defaultPage().getPaper();
paper.setImageableArea(0, 0, paper.getWidth(), paper.getHeight());
// custom page format
PageFormat pageFormat = new PageFormat();
pageFormat.setPaper(paper);
// override the page format
Book book = new Book();
// append all pages
book.append(new PDPageable(document), pageFormat, document.getNumberOfPages());
job.setPageable(book);
job.print();
这不是收据打印机,pdf是使用常规打印的 打印机。
请告知我该如何解决这个问题。
感谢**