如何通过命令行直接将语句回显到pdf?
我想要以下内容
cupsfilter -m text "Thank you for considering this question" > trial.pdf
echo "Thank you for considering this question" | a2pdf trial2.pdf
lpr -P "Thank you for considering this question" trial3.pdf
我正在使用Fedora25
答案 0 :(得分:3)
使用a2ps
和ps2pdf
:
echo "Thank you for considering this question" | a2ps -B -o - | ps2pdf - trial.pdf