我是新来的,首先对我的坏英语感到抱歉。 这是我的问题: 我使用FPDF(该rsulting文件是正确的,我检查两次)和使用lpr命令发送到网络打印机生成PDF文档:HP打印截断文档上的lpr
.....
$pdf->Output('stampe/lipari.pdf', 'F');
//specify the pdf I want to print
$file = 'stampe/lipari.pdf';
//Change PrinterName to the name of the printer you set up in CUPS
$cmd = "lpr -Plipari -o landscape -o fit-to-page ";
//append any files you'd like to print to the end of the command
$cmd .= $file.' 2> output';
exec($cmd);
命令返回没有错误和文件被打印但总是被截断5厘米。 我尝试了几个例如打印指定的边距,但没有影响结果。 唯一可见的结果是当我打印镜像文件:镜像,但在另一边截断了5厘米。
感谢重播
编辑:我发现我的客户将只返回在九月和引起我可以“现场”只托盘我无法测试,现在的任何解决方案。无论如何,我很感激一些帮助。
这是哪个操作系统/发行版? – ewwhite
抱歉,我忘了提及它。是Debian。目前我不能更具体。 – Andrea