# Printing with Terminal Colors
sudo apt install aha wkhtmltopdf

#no colors 
ls > files.txt

# html file with colors
ls --color=always | aha 
ls --color=always | aha > colors.html
xdg-open colors.html

# PDF with Colors
ls --color=always | aha | wkhtmltopdf - colors.pdf
xdg-open colors.pdf

# Send to Printer 
cat colors.pdf|lpr
ls --color=always | aha | wkhtmltopdf - -|lpr

#other examples
ll --color=always| aha | wkhtmltopdf - colors.pdf
echo q | htop | aha --black --line-fix| wkhtmltopdf - colors.pdf
bat --color always go.sh | aha --black --line-fix| wkhtmltopdf - colors.pdf

Click Here to View on Pastebin