help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does ps-print-buffer-with-faces give the correct colors?


From: Peter Dyballa
Subject: Re: Does ps-print-buffer-with-faces give the correct colors?
Date: Wed, 22 Nov 2006 23:35:02 +0100


Am 22.11.2006 um 19:25 schrieb Mathias Dahl:

I made a small hack today while playing wirh Ghostscript. It creates a
PDF file of the current buffer in Emacs. The problem is that the
colors of the faces become strange.

Have you tried Lennart Borgman's htmlize-view.el? Together with Hrvoje Niksic's htmlize.el (http://fly.srk.fer.hr/~hniksic/emacs/ htmlize.el) it converts the buffer into HTML first, which is then displayed in your WWW browser, which should allow to "print" into a PDF file. This way encodings are saved (which PS cannot), and colours as well.


On Mac OS X Ghostscript 8.54 produces PDF with the right colours. I used list-colors-display.

--
Greetings

  Pete

One doesn't expect governments to obey the law because of some higher moral development. One expects them to obey the law because they know that if they don't, those who aren't shot will be hanged.
                                                 --Michael Shirley






reply via email to

[Prev in Thread] Current Thread [Next in Thread]