Home » Uncategorized » How to convert text to PDF in Linux

How to convert text to PDF in Linux

CentOS/RedHat

yum install enscript a2ps ghostscript -y

Ubuntu

sudo apt install enscript a2ps ghostscript -y

How to Convert

enscript -p output.ps imtextfile.txt

ps2pdf output.ps imtextfile.pdf

 

Git:- https://raw.githubusercontent.com/NavdeepD2/wiki/master/How_to_convert_text_to_PDF_in_Linux.md

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*