Print Page | Close Window

How to print color PDF in grayscale

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1322
Printed Date: 25 Apr 25 at 7:40AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to print color PDF in grayscale
Posted By: dsola
Subject: How to print color PDF in grayscale
Date Posted: 25 Jan 10 at 9:59AM
Hi,

I have PDF with color but i wish to print it in grayscale on color laser printer (HP LaserJet 2600n ).

Here's code segment.

 myCustomPrinterName := NewCustomPrinter(PrinterName);
 SetupCustomPrinter(myCustomPrinterName, 6, 1);

....

PDf print is always in color.
When I print PDf on CutePDF Writer resulting PDF is in grayscale.

Any ideas?

I'm using ver. 5.11


-------------
registered QuickPDF user



Replies:
Posted By: CrazyTIm
Date Posted: 21 Aug 11 at 9:09PM
Hi, I know this post is old, but I'm having the same problem with a Fuji Xerox DocuCentre-III C4400.

When I print to it, it always prints in whatever the default color settings are. Printing to a virtual PDF printer works fine.

I wonder, perhaps this is a compatibility problem with the library and certain print drivers?

Jas.


Posted By: xianchian
Date Posted: 12 Sep 11 at 5:41PM
Hello Everyone,

I'm facing the same problem as stated here.
I'm using the 7.26 version of the product.

Did you find something usefull to get through this issue?

Thanks,
Xianchian.


Posted By: AndrewC
Date Posted: 13 Sep 11 at 10:17AM
Quick PDF Library does not have any colour conversion routines in the library.  It sends a full 24bit image to the printer driver and leaves the printing details mostly up to the printer driver.

Quick PDF Library uses the standard Windows DEVMODE structure to configure the printer.  Normally each printer driver sets the defaults and modifies the DEVMODE structure for printing.  The problem is that not all printer drivers use DEVMODE in the same way.  ie.  not all flags operate exactly the same way and then there is devModeExtra which can supply extra parameters.

   http://nicholas.piasecki.name/blog/2008/11/programmatically-selecting-complex-printer-options-in-c-shar/ - http://nicholas.piasecki.name/blog/2008/11/programmatically-selecting-complex-printer-options-in-c-shar/  

Currently QP.SetupCustomPrinter allows the setting of 11 or so basic parameters in the DEVMODE structure. SetupCustomPrinter(myCustomPrinterName, 6, 1); uses option 6. I suspect the Fuji Xerox printer uses a different flag to specify grayscale printing than flag #6.

This problem is not limited to Quick PDF Library but to any other library that uses DEVMODE for printing.

Andrew.


Posted By: CrazyTIm
Date Posted: 14 Sep 11 at 1:04AM
Hi Andrew, this is really interesting... so does that mean that theoretically all I would need to do is somehow discover what flag (number) my printer uses to specify colour/mono?

I wonder if there is a monitoring program to see what info is passed when printing...

Regards, Jason


Posted By: AndrewC
Date Posted: 14 Sep 11 at 9:34AM
Yes.  That would be half the fix.  We would need to add some code to QPL to allow you to work with the DEVMODE structure directly.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk