使用lpr -P 命令打印pdf文档,文档尾部有空白部分。求大神

CPU/显卡/打印机/USB设备等硬件问题
回复
WintceJ
帖子: 31
注册时间: 2015-09-24 14:39
系统: Ubuntu or win7

使用lpr -P 命令打印pdf文档,文档尾部有空白部分。求大神

#1

帖子 WintceJ » 2016-06-13 16:04

我的pdf文档内容是一页半,第二页的 后半页是空白的;但是直接卡开pdf文件,到页面设置设置完了之后,打印只有内容,没有后半页的空白部分;但是使用lpr -P命令,连后半页的空白也打印到小票上了。求大神。
附件
对比图.png
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 使用lpr -P 命令打印pdf文档,文档尾部有空白部分。求大神

#2

帖子 poloshiao » 2016-06-13 16:31

lpr -P
http://manpages.ubuntu.com/manpages/wil ... lpr.1.html
lpr - off line print
-P printer
By default, the destination printer is taken from the command line
-P printer value, then the environment variables PRINTER, LPDEST,
NPRINTER, NGPRINTER, then first entry in the printcap information,
and and finally the default_printer entry from the configuration
file, and then the compile time default.
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: 使用lpr -P 命令打印pdf文档,文档尾部有空白部分。求大神

#3

帖子 astolia » 2016-06-13 17:12

你给lpr设置同样的页面参数试试呢?
https://www.cups.org/documentation.php/options.html
可能用到的有media,fit-to-page,
回复