Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Apr 11, 2016 10:45 am

When we tried to print the pdf attached here by using Adobe and Spire we identified less quality with Spire pdf than Adobe reader. So does Spire pdf reduce the quality or the resolution of the pdf files before printing them? Is there a default setting to compress or reduce the quality/resolution of the pdf when printing to increase the efficiency that we can disable to get higher quality while printing?

Below is the code that we are using for printing.

Code: Select all
 Spire.Pdf.PdfDocument pdfDocument = new Spire.Pdf.PdfDocument();
 pdfDocument.LoadFromFile(fileName);
 pdfDocument.PageScaling = Spire.Pdf.PdfPrintPageScaling.ActualSize;
 printDocument.Print();


Thank you.

janitha000
 
Posts: 15
Joined: Fri Mar 11, 2016 10:07 am

Tue Apr 12, 2016 2:55 am

Hi,

Thanks for your posting.
Please try the following solution.
Code: Select all
 Spire.Pdf.PdfDocument pdfDocument = new Spire.Pdf.PdfDocument();
            pdfDocument.LoadFromFile("..\\..\\Label.pdf");
            pdfDocument.PrintDocument.Print();


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Tue Apr 12, 2016 4:11 am

Removing
Code: Select all
pdfDocument.PageScaling = Spire.Pdf.PdfPrintPageScaling.ActualSize;


makes the margins of the printed document to be wrong. That is why we included ActualSize in the code. Can you give more details on to how removing this code will improve the quality of the printing??

janitha000
 
Posts: 15
Joined: Fri Mar 11, 2016 10:07 am

Tue Apr 12, 2016 8:07 am

Hi,

I tested your pdf file with Spire.PDF Pack(Hot Fix) Version:3.6.260 and compared the the margins of the printed document generated by using Spire.PDF and Adobe, but their margins have no differences, and their quality of the printing also have no differences. Please try the version.
If the issue still exists after trying the version, please share your printed document and tell us your testing environment.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

cron