如何将字符串回显为pdf

时间:2017-06-22 02:33:54

标签: bash pdf echo

如何通过命令行直接将语句回显到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

1 个答案:

答案 0 :(得分:3)

使用a2psps2pdf

echo "Thank you for considering this question" | a2ps -B -o - | ps2pdf - trial.pdf