These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Converting color text to black

kilmanjaro
Registered: Mar 13 2009
Posts: 26
Answered

Is there a way, through Javascript or through other means, to set up a PDF using Acrobat so that it converts all text to black before printing?
 
I have a PDF with colored text in it that looks great on screen, but is failing to print effectively when sent to a black and white printer. Obviously, orange text is converting to grayscale and is too faint when printed. I'm hoping there is a way to modify the settings in the PDF so that if I send the PDF to someone who only has Adobe Reader, they can print it on a black and white printer and the text will print as black.
 
Any help is greatly appreciated.

try67
Online
Expert
Registered: Oct 30 2008
Posts: 2398
You can use the print method of the Document object and specify in the PrintParams the color override. Your options are to let Acrobat decide, force color to grayscale or force color to monochrome.

Another option is to create a black and white layer with all of the contents of the PDF in black and white, and then create a WillPrint script that displays it, and a DidPrint script that hides it.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

kilmanjaro
Registered: Mar 13 2009
Posts: 26
Thanks for the quick response!

"You can use the print method of the Document object and specify in the PrintParams the color override. Your options are to let Acrobat decide, force color to grayscale or force color to monochrome."

I think your first option should work great, but I have no idea how to accomplish it.

Is the above translated to javascript, or is it something I search for in the Acrobat preferences and menus?




try67
Online
Expert
Registered: Oct 30 2008
Posts: 2398
I recommend looking in the Acrobat JavaScript Reference files, but here's the code to print the document in monochrome:

var pp = this.getPrintParams();
pp.colorOverride = pp.constants.colorOverrides.mono;
this.print(pp);

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

kilmanjaro
Registered: Mar 13 2009
Posts: 26
Thank you, try67... I'll follow your advice and recommendations.