Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - How to print color PDF in grayscale
  FAQ FAQ  Forum Search   Register Register  Login Login

How to print color PDF in grayscale

 Post Reply Post Reply
Author
Message
dsola View Drop Down
Team Player
Team Player


Joined: 28 Oct 05
Location: Croatia
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote dsola Quote  Post ReplyReply Direct Link To This Post Topic: How to print color PDF in grayscale
    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
Back to Top
CrazyTIm View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Aug 11
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote CrazyTIm Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
xianchian View Drop Down
Beginner
Beginner


Joined: 12 Sep 11
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote xianchian Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.


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.
Back to Top
CrazyTIm View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Aug 11
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote CrazyTIm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store