By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,589 Members | 1,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,589 IT Pros & Developers. It's quick & easy.

cross platform printing

P: n/a
"Alan Isaac" <ai*****@verizon.net> wrote in message
news:_A34e.2207$1r6.248@trnddc02...
I'd like to try personal financial management using Python.
I just found PyCheckbook, but it does not support check printing.
Is there a Python check printing application kicking around?

OK, I'll assume silence means "no", so new question:
What is the current best practice for cross platform printing of PostScript
files from Python?
Same question for PDF. (I'm aware of
URL:http://tgolden.sc.sabren.com/python/...o_i/print.html.)

Thanks,
Alan Isaac

Jul 18 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hello David,
"Alan Isaac" <ai*****@verizon.net> wrote in message
news:_A34e.2207$1r6.248@trnddc02...
I'd like to try personal financial management using Python.
I just found PyCheckbook, but it does not support check printing.
Is there a Python check printing application kicking around?

wxPython is a cross platfom UI framework which has printing support.
Maybe you can cook something.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)

iD8DBQFCU3ej8jAdENsUuJsRAkCsAJ9jIk8BYGt6tgvIOgNBpn YMkoU/lwCgiu15
WT2opeR6127erQLADNGvV+g=
=oI6I
-----END PGP SIGNATURE-----

Jul 18 '05 #2

P: n/a
> Alan Isaac wrote:
What is the current best practice for cross platform printing of PostScript files from Python?

"Warren Postma" <wp@tekran.spammenziemichnichtdankeschon.com> wrote in
message news:mV*******************@news20.bellglobal.com.. . Well since printing postscript files on most Unix systems (probably
including Mac OSX although I don't really know this for sure) is
trivially easy, why not investigate using cygwin on Windows and
launching an "lpr" task from your python script that prints the given
postscript file. Implementation time on Unix: 0 minutes, 0 seconds.
Implementation time on Windows; the time it takes make a cygwin batch
file that prints using ghostscript.


I meant something that application users on different platforms can print
with, not something
that they could coerce a platform into supporting given enough energy (e.g.,
via Cygwin).
The closest to an option so far seems to be to generate PDF and assume an
application is available to print it. Not beautiful.

Alan Isaac
Jul 19 '05 #3

P: n/a
"David Isaac" <ai*****@verizon.net> writes:
Alan Isaac wrote:

I meant something that application users on different platforms can print
with, not something
that they could coerce a platform into supporting given enough energy (e.g.,
via Cygwin).
The closest to an option so far seems to be to generate PDF and assume an
application is available to print it. Not beautiful.


What about generating some other image format? It does seem more
likely that the host OS will be able to handle, say GIF, than
PDF. In particular, Windows probably comes able to print GIF out of
the box, but not PDF. Then again, when I use Windows acrobat reader
gets installed fairly early, so I may have overlooked it.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #4

P: n/a
On Mon, 25 Apr 2005 00:26:38 -0500, Mike Meyer <mw*@mired.org> declaimed
the following in comp.lang.python:

What about generating some other image format? It does seem more
likely that the host OS will be able to handle, say GIF, than
PDF. In particular, Windows probably comes able to print GIF out of
At what resolution? PDF/PostScript aren't image formats -- they
generate the output page using the resolution of the output device... An
image that looks good on a big screen (I'm currently running 1600x1200)
would create a 5.333x4.0" printout at the quality mode of 300PPI.

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #5

P: n/a
Hi Dennis... Then, what would be your solution? Print a PDF? If so, how
you do that without assuming that an
application is available to print it?

Daniel

Jul 19 '05 #6

P: n/a
On 25 Apr 2005 08:40:27 -0700, "dcrespo" <dc*****@gmail.com> declaimed
the following in comp.lang.python:
Hi Dennis... Then, what would be your solution? Print a PDF? If so, how
you do that without assuming that an
application is available to print it?
Well, the latter part of your comment is true for practically
all formats these days (especially for those suckered into "WinPrinters"
which don't even have ASCII text capability).

My comment regarding the use of a GIF format was only meant to
point out that a detailed /printable resolution/ GIF covering 8x10"
(leaving a margin) requires an image size of 2400x3000 pixels.

And that still is relying upon /some/ application being
available to print it. About the only way to avoid some user-level
application from getting in the middle, on Windows, would be to directly
generate the WMF/EMF data that seems to be common to most Windows
printer drivers (which /then/ convert it to a raster format for output
using the printer's native language).

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #7

P: n/a
If you're in need of a GUI, then wxPython might be your cross-platform
printing solution.

Regards,

Philippe

David Isaac wrote:
Alan Isaac wrote:
> What is the current best practice for cross platform printing of PostScript > files from Python?


"Warren Postma" <wp@tekran.spammenziemichnichtdankeschon.com> wrote in
message news:mV*******************@news20.bellglobal.com.. .
Well since printing postscript files on most Unix systems (probably
including Mac OSX although I don't really know this for sure) is
trivially easy, why not investigate using cygwin on Windows and
launching an "lpr" task from your python script that prints the given
postscript file. Implementation time on Unix: 0 minutes, 0 seconds.
Implementation time on Windows; the time it takes make a cygwin batch
file that prints using ghostscript.


I meant something that application users on different platforms can print
with, not something
that they could coerce a platform into supporting given enough energy
(e.g., via Cygwin).
The closest to an option so far seems to be to generate PDF and assume an
application is available to print it. Not beautiful.

Alan Isaac


Jul 19 '05 #8

P: n/a
Had you used it?

Daniel

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.