透明地打印PDF [英] Print a PDF transparently

查看:90
本文介绍了透明地打印PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想直接从我的python应用程序打印PDF。使用

透明地我的意思是,无论什么程序处理打印请求,用户都不应该被注意到它。


例如,当我想要打印PDF,Adobe Acrobat触发并保持打开
。这就是我不想发生的事情(而且我还有很多想要这个的人)。所以我只想将PDF发送到

右边的处理程序并打印出来。这就是全部。


我见过一些类似Adobe的Postscript驱动程序,可以阅读

PDF或Ghostscript,但是我还是不知道如何使用它。


透明打印PDF的任何帮助吗?


谢谢


Daniel

Hi to all,

I want to print a PDF right from my python app transparently. With
"transparently" I mean that no matter what program handles the print
petition, the user shouldn''t be noticed about it.

For example, when I want to print a PDF, Adobe Acrobat fires and keep
opened. This is what I don''t want to happen (and I thing there are a
lot of people who want this too). So I just want to send the PDF to the
right handler and print it. That''s all.

I''ve seen some things like Adobe''s Postscript driver that can read a
PDF, or Ghostscript, but I still don''t know how to use it.

Any help for printing a PDF transparently?

Thank you

Daniel

推荐答案



Daniel Crespo写道:

Daniel Crespo wrote:
大家好,

我想直接从我的python应用程序打印PDF。使用
透明我的意思是,无论什么程序处理打印请求,用户都不应该被注意到。

例如,当我想要打印PDF时,Adobe Acrobat会触发保持打开状态。这就是我不想发生的事情(而且我有很多人也想要这样做)。所以我只想将PDF发送到
权限处理程序并打印出来。这就是全部。

我见过一些像Adobe的Postscript驱动程序,可以读取PDF或Ghostscript,但我还是不知道怎么做使用它。

任何透明打印PDF的帮助?
Hi to all,

I want to print a PDF right from my python app transparently. With
"transparently" I mean that no matter what program handles the print
petition, the user shouldn''t be noticed about it.

For example, when I want to print a PDF, Adobe Acrobat fires and keep
opened. This is what I don''t want to happen (and I thing there are a
lot of people who want this too). So I just want to send the PDF to the
right handler and print it. That''s all.

I''ve seen some things like Adobe''s Postscript driver that can read a
PDF, or Ghostscript, but I still don''t know how to use it.

Any help for printing a PDF transparently?




我能找到的唯一方法(免费) )是安装

GhostScript和GSView。 GSView附带GSPrint.exe,您可以使用常规命令行调用
将PDF文件发送到打印机。它

在幕后使用GhostScript,因为GhostScript不是
完全是最友好的程序。



The only way I was able to find to do it (for free) was to install
GhostScript and GSView. GSView comes with GSPrint.exe, which you can
call with a regular command line to send PDF files to a printer. It
uses GhostScript for you behind the scenes because GhostScript is not
exactly the friendliest program to work with.


在文章< 11 ********************** @ o13g2000cwo.googlegroups .com> ;,

Daniel Crespo <直流***** @ gmail.com>写道:
In article <11**********************@o13g2000cwo.googlegroups .com>,
Daniel Crespo <dc*****@gmail.com> wrote:
大家好,

我想直接从我的python应用程序打印PDF。使用
透明我的意思是,无论什么程序处理打印请求,用户都不应该被注意到。

例如,当我想要打印PDF时,Adobe Acrobat会触发保持打开状态。这就是我不想发生的事情(而且我有很多人也想要这样做)。所以我只想将PDF发送到
权限处理程序并打印出来。这就是全部。

我见过一些像Adobe的Postscript驱动程序,可以读取PDF或Ghostscript,但我还是不知道怎么做使用它。

任何透明打印PDF的帮助?
Hi to all,

I want to print a PDF right from my python app transparently. With
"transparently" I mean that no matter what program handles the print
petition, the user shouldn''t be noticed about it.

For example, when I want to print a PDF, Adobe Acrobat fires and keep
opened. This is what I don''t want to happen (and I thing there are a
lot of people who want this too). So I just want to send the PDF to the
right handler and print it. That''s all.

I''ve seen some things like Adobe''s Postscript driver that can read a
PDF, or Ghostscript, but I still don''t know how to use it.

Any help for printing a PDF transparently?



2006-02-17,Daniel Crespo< dc*****@gmail.com>写道:
On 2006-02-17, Daniel Crespo <dc*****@gmail.com> wrote:
我想直接从我的python应用程序打印PDF。使用
透明我的意思是,无论什么程序处理打印请求,用户都不应该被注意到它。


这对我有用:


system(" lpr whatever.pdf")


或者,


os.popen(" lpr"。" w")。write(myBigStringContainingPDF)

例如,当我想要打印PDF,Adobe Acrobat触发并保持打开状态。这就是我不想发生的事情(而且我有很多人也想要这样做)。所以我只想将PDF发送到
权限处理程序并打印出来。这就是全部。
I want to print a PDF right from my python app transparently. With
"transparently" I mean that no matter what program handles the print
petition, the user shouldn''t be noticed about it.
This works for me:

system("lpr whatever.pdf")

Or alternatively,

os.popen("lpr"."w").write(myBigStringContainingPDF )
For example, when I want to print a PDF, Adobe Acrobat fires and keep
opened. This is what I don''t want to happen (and I thing there are a
lot of people who want this too). So I just want to send the PDF to the
right handler and print it. That''s all.




见上文。


-

Grant Edwards grante佑! hubub,hubub,HUBUB,

在hubub,hubub,hubub,HUBUB,

visi.com hubub,hubub,hubub。



See above.

--
Grant Edwards grante Yow! hubub, hubub, HUBUB,
at hubub, hubub, hubub, HUBUB,
visi.com hubub, hubub, hubub.


这篇关于透明地打印PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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