473,695 Members | 3,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cross platform printing

"Alan Isaac" <ai*****@verizo n.net> wrote in message
news:_A34e.2207 $1r6.248@trnddc 02...
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
8 2421
Hello David,
"Alan Isaac" <ai*****@verizo n.net> wrote in message
news:_A34e.2207 $1r6.248@trnddc 02...
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*********@zo ran.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)

iD8DBQFCU3ej8jA dENsUuJsRAkCsAJ 9jIk8BYGt6tgvIO gNBpnYMkoU/lwCgiu15
WT2opeR6127erQL ADNGvV+g=
=oI6I
-----END PGP SIGNATURE-----

Jul 18 '05 #2
> Alan Isaac wrote:
What is the current best practice for cross platform printing of PostScript files from Python?

"Warren Postma" <wp@tekran.spam menziemichnicht dankeschon.com> wrote in
message news:mV******** ***********@new s20.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
"David Isaac" <ai*****@verizo n.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.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #4
On Mon, 25 Apr 2005 00:26:38 -0500, Mike Meyer <mw*@mired.or g> declaimed
the following in comp.lang.pytho n:

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.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.ne tcom.com/> <

Jul 19 '05 #5
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
On 25 Apr 2005 08:40:27 -0700, "dcrespo" <dc*****@gmail. com> declaimed
the following in comp.lang.pytho n:
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 "WinPrinter s"
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.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.ne tcom.com/> <

Jul 19 '05 #7
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.spam menziemichnicht dankeschon.com> wrote in
message news:mV******** ***********@new s20.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
Had you used it?

Daniel

Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1838
by: Karsten | last post by:
Hi I'm a really a new with this cross platform development, so I have some dumb questions, which I hope you can help me with. If there is a better newsgroup for this question, please point me to it.
2
2054
by: David Isaac | last post by:
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? Thanks, Alan Isaac
7
4837
by: Web Master | last post by:
Are there any good websites or books that deal with cross platform XML? I'd like to target Internet Explorer/Netscape Navigator 5 or later, as well as Opera, possibly konqueror on Linux as well. OT: I'm also looking for books and websites for cross platform XHTML and DHTML.
0
2051
by: demibee | last post by:
Thought this might be of interest to some out there... For those who've never encountered it, it's a free, open-source, cross-platform GUI library (Windows/Mac/Linux). Forte's Agent 2.0 will be built with it. AVG is as well.. "wxWindows An open source C++ GUI framework to make cross-platform programming child's play." <http://www.wxwindows.org/>
14
2136
by: John Salerno | last post by:
Bear with me, but I've been reading a lot about how the .NET languages are platform independent, and I assume this means a program written in C# can be run on a Unix or Mac machine. If this assumption is wrong, then nevermind! :) But if it's true, what will be necessary to run these programs on a Mac, for example? I know they would need an equivalent to the .NET Framework, but does something like this exist yet, or is the "platform...
7
2635
by: Charles | last post by:
I'd like to develop a simple cross-platform application in C++. I'd like it to run in Windows, OS X, PC-BSD and Linux. From my research, it seems I should use Qt or Gtk as a graphical library. Do you agree? Do you have other tips? How Cygwin could help me? Thanks.
5
10091
by: Michael Reichenbach | last post by:
After working with script languages, notepad(++) and co. and several other ide`s I found something which really improved my productivity (Visual Studio 2005). It`s imho better then dev-cpp... I worked with C# and VB.net a bit and it was really easy because of the debugger, the interactive debugger, intellisense, command completer and so on. I would like to stick to this ide. But I thought about to invest in C++ instant of C# / VB.net...
12
1988
by: Tomás Ó hÉilidhe | last post by:
I don't know the first thing about cross-platform GUI programming, so I'd like to ask a few quick questions. Which library is best for someone who appreciates portable programming and correct efficient code, and who'd like the library to fit well with the C++ Standard Library? Also I'd like the library to work on as many platforms as possible (Windows, Linux, Mac, and even the new game consoles such as Playstation 3 and XBox 360 if...
1
7822
by: Vinod Sadanandan | last post by:
Cross Platform Migration An Unproblematic Approach (Windows-UNIX ) Oracle 10\11g The principal restriction on cross-platform transportable database is that the source and destination platform must share the same endian format. Redo log files and control files from the source database are not transported to destination database . New control files and redo log files are created for the new database during the transport process, and an ...
0
8555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8971
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8824
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5831
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4336
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4571
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2994
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.