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.

Wed Jan 10, 2018 8:57 pm

Hi,

I have a color PDF that I'm trying to print in black & white only using the following:

Code: Select all
PdfDocument pdfPrint = new PdfDocument("test.pdf");
pdfPrint.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode.ActualSize);
pdfPrint.PrintSettings.PrintController = new System.Drawing.Printing.StandardPrintController();
pdfPrint.PrintDocument.DefaultPageSettings.Color = false;
pdfPrint.Print();


It always prints in color.
this line pdfPrint.PrintDocument.DefaultPageSettings.Color is depreciated but I don't see the color setting in PrintSettings.

Is there something else that needs to be done to force black and white?

Thanks
AndyG

andyg
 
Posts: 23
Joined: Thu Oct 20, 2016 5:24 pm

Thu Jan 11, 2018 1:50 am

Hello AndyG,

Thanks for your feedback. Actually, this is a known issue, our DEV team are fixing it. But it can not be accomplished in a short time. If there is any good news, we will notify you. We appologize for the inconvenience.

Best regards,
Simon
E-icebule support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Mar 02, 2018 7:24 pm

Hi,

Has any progress been made on this issue?

Thanks
AndyG

andyg
 
Posts: 23
Joined: Thu Oct 20, 2016 5:24 pm

Mon Mar 05, 2018 5:55 am

Hello AndyG,

Thanks for your inquiry. I am sorry it hasn't been implemented yet. We will keep you informed about the progress.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Mar 15, 2018 9:53 am

Hello AndyG,

Glad to inform you that the function of printing in white black mode has been implemented. Please download Spire.PDF Pack(Hot Fix) Version:4.3.4 and refer to the below code to have a try.
Code: Select all
PdfDocument doc=new PdfDocument();
doc.LoadFromFile(fileName);
doc.PrintSettings.Color=false;
doc.Print();


Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Mar 16, 2018 12:07 pm

Hi,
Thanks for the information.

I've tried the new version and while it does print the document in black and white, the quality of the document is affected.

The text and images are not crisp and clear like the original and some of the elements on the page are not printed.

We have gone another route to print black and white which will work for us.

Thanks
AndyG

andyg
 
Posts: 23
Joined: Thu Oct 20, 2016 5:24 pm

Mon Mar 19, 2018 1:40 am

Hello AndyG,

Thanks for your feedback. Actually, the low quality is a known issue when printing in white/black. We are trying to improve the performance. If there is any good news, we will let you know.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Mar 29, 2018 7:36 am

Hello AndyG,

Glad to inform you that the quality issue when printing in white black has been fixed. Welcome to download Spire.PDF Pack(Hot Fix) Version:4.3.14.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Tue May 29, 2018 10:09 am

Hello,

we are still getting bad quality printing a pdf in grayscale with version 4.5.3.

Regards,
Christian

cmayer
 
Posts: 4
Joined: Wed Mar 01, 2017 10:38 am

Wed May 30, 2018 1:34 am

Hello Christian,

Thank you for your post.
Could you please share your sample document to help us look into it?

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed May 30, 2018 12:00 pm

Hello Jane,

please find the sample document attached.

Regards,
Christian

cmayer
 
Posts: 4
Joined: Wed Mar 01, 2017 10:38 am

Thu May 31, 2018 2:21 am

Hello Christian,

Thank you for sharing the document.
I have tested your file with the latest(Spire.PDF Pack(Hot Fix) Version:4.5.3) using "Microsoft XPS Document Writer" and the result is correct. Please try to upgrade your dlls to this version.
This is my testing code and attached is the result for checking.
Code: Select all
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile("DPDLabel_Multi_30052018130525.pdf");
doc.PrintSettings.Color = false;
doc.Print();

In addition, could you tell us what printer you were using?
How about changing a printer? Did the issue still occur?

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Jun 11, 2018 1:07 pm

Hello Jane,

same result with Version 4.5.3. But it seems to be partially fixed in 4.6.1.
In 4.6.1 only the image on the top right corner has bad quality.
We altough tried this with "Microsoft XSP Document Writer" but this prints always colored and we don't have qualitiy issues when color printing at all.

For testing we use "HP Laserjet 3055" and a virtual printer from a program called "Snagit".

Regards,
Christian

cmayer
 
Posts: 4
Joined: Wed Mar 01, 2017 10:38 am

Mon Jun 11, 2018 1:11 pm

btw this is how it looks, when it is printed via adobe.

cmayer
 
Posts: 4
Joined: Wed Mar 01, 2017 10:38 am

Tue Jun 12, 2018 5:09 am

Dear Christian,

Thank you for your feedback.
I have tested two physical printers("HP LaserJet P1007" and "HP Color LaserJet Pro MFP M278-M281") and didn't encounter the issue you mentioned. See below.
PhysicalPrinter.png

However, when I print via the virtual printer "Snagit 12", the issue occurs. Not sure if it is caused by the printer driver. Our dev team would look into it. Once there's any update, I will let you know.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.PDF