We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Print Quality


Is there a way to improve the Java PDF print quality?

I have tried increasing the viewer resolution but it does not seem to make a difference.

Here is the code I use

com.aspose.pdf.facades.PdfViewer viewer = new com.aspose.pdf.facades.PdfViewer();


//Open input PDF file


//Set attributes for printing

viewer.setAutoResize(true); //Print the file with adjusted size

viewer.setAutoRotate(true); //Print the file with adjusted rotation

viewer.setPrintPageDialog(false); //Do not produce the page number dialog when printing

PrintService myService = PrintServiceLookup.lookupDefaultPrintService();

PrinterJob printJob = PrinterJob.getPrinterJob();



This is what is produced.

Hi Joe,

Thanks for using our API’s.

The problem appears to be related to input PDF file which you are trying to print. Can you please share the resource file so that we can test the scenario in our environment. We are sorry for this inconvenience.

I have tried many different PDf’s with the same result.

Just a standard read me file produces the same result

I have attached an example file

Hi Joe,

Thanks for sharing the resource file.

We are testing the scenario and will share our findings, shortly.

Hi Joe,

Thanks for your patience.

I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWJAVA-35107 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.


I would be great to get this working as the API is just what we need.

Hi Joe,

As soon as we have some definite updates regarding its resolution, we will update you within this forum thread. Your patience and comprehension is greatly appreciated in this regard.

The issues you have found earlier (filed as PDFNEWJAVA-35107) have been fixed in Aspose.Pdf for Java 11.4.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.