I have a program that generates console output colored with ANSI codes. How to convert it to PDF keeping the colors?
I need a unixish command line solution
The best solution so far: aha to convert to HTML (http://stackoverflow.com/questions/245121/a-library-to-convert-ansi-escapes-terminal-formatting-color-codes-to-html), then convert HTML to PDF e.g. with wkhtmltopdf.
I am still looking for a one step solution.
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
If you have calibre/pdfcreator/cutepdf kind of utility installed in your environment or computer. You can use lp to send text to printer.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago
7 months ago