Linux的管道(转换 - > pdf2ps - > LP) [英] Linux piping ( convert -> pdf2ps -> lp)

查看:158
本文介绍了Linux的管道(转换 - > pdf2ps - > LP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这样我就可以打印PDF这样做的:

Ok, so I can print a PDF doing:

pdf2ps file.pdf - | lp -s

但现在我想用转换合并多个PDF文件,我可以做到这一点:

But now I want to use convert to merge several PDF files, I can do this with:

convert file1.pdf file2.pdf merged.pdf

该合并的 file1.pdf 的和的 file2.pdf 的成的 merged.pdf 的,目标可以被替换成' - '。

which merges file1.pdf and file2.pdf into merged.pdf, target can be replaced with '-'.

我怎么能管转换成 pdf2ps ,然后进入 LP 虽然?

How could I pipe convert into pdf2ps and then into lp though?

推荐答案

转换file1.pdf file2.pdf - | pdf2ps - - | LP -S
应该做的工作。

convert file1.pdf file2.pdf - | pdf2ps - - | lp -s should do the job.

您发送convert命令将psf2ps,这反过来并将其输出到LP的输出。

You send the output of the convert command to psf2ps, which in turn feeds its output to lp.

这篇关于Linux的管道(转换 - > pdf2ps - > LP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆