Categories
Uncategorized

How to convert text to PDF in Linux

for CentOS/RedHat

yum install enscript a2ps ghostscript -y

for Ubuntu

sudo apt install enscript a2ps ghostscript -y

How to Convert

enscript -p output.ps imtextfile.txt

ps2pdf output.ps imtextfile.pdf

Github -> https://github.com/NavdeepD2/wiki/blob/master/How_to_convert_text_to_PDF_in_Linux.md

Leave a Reply