I am trying to print a pdf document using Aspose.pdf.kit.PdfViewer but i am getting black shaded page in the printed sheet. I have pasted below my snippet of code
printerJob = PrinterJob.getPrinterJob();
PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
// Create PDF Print Page
PdfViewer pdfviewer = new PdfViewer();
int startPage = 1;
int endPage = pdfviewer.getPdfFilePageCount();
for (int page = startPage; page < endPage + 1; page++)
Paper paper = new Paper();
paper.setImageableArea(0, 0, paper.getWidth(), paper.getHeight());
I have attached the sample pdf(out123.pdf) with this post. Printed pdf also i have attached(Sample.pdf).
We were trying to see the root cause but we didn't get anything. Please give me the solution for this.