I've applied the patch to the version of gtksourceview3 in trusty and verified that it indeed fixes the issue. I'm attaching here the debdiff with the patch applied.
it would be really nice if this could be updated in trusty. Thanks! ** Patch added: "Debdiff to the trusty version with the patch applied" https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/1313283/+attachment/4415722/+files/gtksourceview3-color.debdiff ** Description changed: + [Impact] + Code printed from gedit (or similar programs) will be black & white, even for printing PDFs and also the printer is capable of printing colors. + + [Test Case] + 1) Open any source file with gedit, verify that you see colored highlighting + 2) Print to a PDF file + 3) Open the PDF with evince. It should have the same colors. + + [Regression Potential] + + Nothing evident, the patch is pretty simple and has been applied + upstream for over a year. + + [Original Description follows] + gedit shows syntax highlighting (with default Classic color scheme) properly, yet prints/previews text as black-and-white for a color printer (Xerox Phaser 6180DN in this case). Before 14.04 it used to print properly in color. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: gedit 3.10.4-0ubuntu4 ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8 Uname: Linux 3.13.0-22-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.14.1-0ubuntu3 Architecture: amd64 CurrentDesktop: Unity Date: Sun Apr 27 03:47:14 2014 ExecutablePath: /usr/bin/gedit InstallationDate: Installed on 2014-04-03 (24 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326) ProcEnviron: - LANGUAGE=en_US - PATH=(custom, user) - XDG_RUNTIME_DIR=<set> - LANG=en_US.UTF-8 - SHELL=/bin/bash + LANGUAGE=en_US + PATH=(custom, user) + XDG_RUNTIME_DIR=<set> + LANG=en_US.UTF-8 + SHELL=/bin/bash SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1313283 Title: gedit always prints in black and white on color printer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/1313283/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs