Re: Creating Grayscale PDF with CFDocument in CF8?
Perhaps a print stylesheet? On Fri, Jan 31, 2014 at 12:57 PM, Dave Hatz daveh...@hatzventures.org wrote: Anyone know how to create a PDF document in grayscale? We have a web page that we give the user the ability to create a PDF of the page. The client doesn't want any of the color that we have in our table columns to print in color. I did a quick search on google, doesn't seem to be way to tell CFDocument to create the PDF in grayscale. Anyone know of a way to do this without creating another web page without colors? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357555 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Creating Grayscale PDF with CFDocument in CF8?
In a word, no, unless you wanted to convert the PDF to an image, greyscale it, and then convert it back to a PDF - losing all of your text selection in the process. My suggestion would also be the stylesheet solution. If you use SASS (http://sass-lang.com/ ) you can declare your color variables in the master template and then just let sass automatically generate two different stylesheets with different colors: color stylesheet $table_border: navy; @import includes/base_styles.scss; greyscale stylesheet $table_border: #99; @import includes/base_styles.scss; On Jan 31, 2014, at 12:57 PM, Dave Hatz daveh...@hatzventures.org wrote: Anyone know how to create a PDF document in grayscale? We have a web page that we give the user the ability to create a PDF of the page. The client doesn't want any of the color that we have in our table columns to print in color. I did a quick search on google, doesn't seem to be way to tell CFDocument to create the PDF in grayscale. Anyone know of a way to do this without creating another web page without colors? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357556 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Creating Grayscale PDF with CFDocument in CF8?
Perhaps a print stylesheet? Yes, we also have a few sites with print to PDF, and similarly the client wanted them to print differently. A print style was the solution. http://demosthenes.info/blog/532/Convert-Images-To-Black-And-White-With-CSS Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357557 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm