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

Free Support Forum - aspose.com

Print quality low - java version

I print from PdfViewer in my java application directly on printer.
The print quality is quite low and the printed page seems to be out of focus.
I enhanced the resolution til 1200 and something changed but not enough.
The same document, dumped on a file and printed as usual prints prefectly.

public void print(byte[] xpDocument, String xpPrinterName, int xpCopies) throws IOException {
Document doc = new Document(new ByteArrayInputStream(xpDocument));
PdfViewer viewer = new PdfViewer();
if(xpPrinterName == null) {
} else {
PdfPrinterSettings settings = viewer.getDefaultPrinterSettings();
PrintPageSettings pageSetting = settings.getDefaultPageSettings();
viewer.printDocumentWithSettings(pageSetting, settings);

What’s wrong ?

Stampa.pdf (616.3 KB)
The example file we use.


I have attached the printed file here. Can you please create a comparison snapshot for our reference so that we can investigate it further. Stampa-print.pdf (1.5 MB)

Intestazione.jpg (146.0 KB)
Tks for Your help but my problem is not about a pdf output but a print output.
As You can see in the uploaded image the page directly printed from code (with the orange tag FIRMA) is out of focus while the same pdf, printed from acromat (with the black tag AXIDOC) is perfectly on focus.
This is my problem.


A ticket with ID PDFJAVA-40493 has been created to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be addressed.

No further news about the ticket ?


Please note that it was recently logged in free support model and will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we make some definite progress towards its resolution. Please be patient and spare us some time.