Re: can't find a way to display and print pdf through python.

2007-02-13 Thread jim-on-linux
For those who care, the file below should run on a unix/ linux style system. And "xpdf", amoung others, will run a pdf file. import os def Printpdf(): os.system( 'xpdf form.pdf' ) if __name__ == '__main__' : Printpdf() jim-on-linux > On Tue, 13 Feb 2007 08:44:18 GMT, Jussi Salm

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread Jussi Salmela
Dennis Lee Bieber kirjoitti: > On Tue, 13 Feb 2007 08:44:18 GMT, Jussi Salmela > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> On Windows, this (where fileName is xyz.PDF, for example): >> webbrowser.open(r'file://' + fileName) >> starts Acrobat Reader with the docu

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread jim-on-linux
I'm using Suse Linux which has five program that will open a pdf file from a shell command line. Acrobat Reader is one of the five. A right button click on the file should give a list of programs that will open a PDF file. Im using a KDE desktop Open a shell, add the path to the directory

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread Antoon Pardon
On 2007-02-11, krishnakant Mane <[EMAIL PROTECTED]> wrote: > hello all, > I am stuck with a strange requirement. > I need a library that can help me display a pdf file as a report and > also want a way to print the same pdf file in a platform independent > way. > if that's not possible then I at le

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread XBello
On Feb 12, 4:56 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > krishnakant Mane wrote: > > hello all, > > I am stuck with a strange requirement. > > I need a library that can help me display a pdf file as a report and > > also want a way to print the same pdf file in a platform independent > > way. >

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread peter
On Feb 13, 7:44 pm, Jussi Salmela <[EMAIL PROTECTED]> wrote: > Grant Edwards kirjoitti: > > > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > >> Grant Edwards wrote: > >>> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > >>

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread Jussi Salmela
Grant Edwards kirjoitti: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> Grant Edwards wrote: >>> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >>> I at least need the code for useing some library for >>> connecti

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >>> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for >> connecting to acrobat reader and giving

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
Grant Edwards wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > I at least need the code for useing some library for > connecting to acrobat reader and giving the print command on > windows and some thing similar on

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Patricio Olivares
On Feb 12, 3:06 pm, "krishnakant Mane" <[EMAIL PROTECTED]> wrote: > os.start does not work.. attribute error. > regards. > Krishnakant. It's os.system('thefile') or os.system('start thefile') but that's windows only. It seems like there's no platform-independent way to launch a preferred applica

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for connecting to acrobat reader and giving the print command on windows and some thing similar on ubuntu linux. >> >>>

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
Grant Edwards wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > >>> I at least need the code for useing some library for >>> connecting to acrobat reader and giving the print command on >>> windows and some thing similar on ubuntu linux. > >> Just let the registered .PDF viewer do

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread krishnakant Mane
os.start does not work.. attribute error. regards. Krishnakant. -- http://mail.python.org/mailman/listinfo/python-list

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for >> connecting to acrobat reader and giving the print command on >> windows and some thing similar on ubuntu linux. > Just let the registered .PDF viewer do it for you. > > os.start('myfil

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
krishnakant Mane wrote: > hello all, > I am stuck with a strange requirement. > I need a library that can help me display a pdf file as a report and > also want a way to print the same pdf file in a platform independent > way. > if that's not possible then I at least need the code for useing some >

Re: can't find a way to display and print pdf through python.

2007-02-11 Thread krishnakant Mane
well yes, I need to view reports on line and also print them from within my app. so yes I need to display the pdf in my app and print it as well. regards. Krishnakant -- http://mail.python.org/mailman/listinfo/python-list

Re: can't find a way to display and print pdf through python.

2007-02-11 Thread Christian Stapfer
krishnakant Mane wrote in message news:[EMAIL PROTECTED] > On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote: >> Use Report Lab... > I mentioned in my first email that I am already using reportlab. > but I can only generate pdf out of that. > I want to display it on screen and I also will be

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread Geoff Hill
Are you trying to: a) Make the PDF file open in it's default application? b) Create a PDF-reader in Python? ...because your question is somewhat unclear. Report Lab has no PDF viewer. You would need a PDF/PostScript parser to do that and that's more of a job than I think you're looking f

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote: > Are you trying to do real time or post real time. > -Vishal post real time. I want to first display the report on screen by default and the user at his choice will click the print button and the report will be printed. regards. Krishnakant.

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Are you trying to do real time or post real time. -Vishal -Original Message- From: krishnakant Mane [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 10:50 PM To: Vishal Bhargava Cc: python-list@python.org Subject: Re: can't find a way to display and print pdf through p

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote: > Use Report Lab... I mentioned in my first email that I am already using reportlab. but I can only generate pdf out of that. I want to display it on screen and I also will be giving a print button which should do the printing job. by the way

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Use Report Lab... Cheers, Vishal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of krishnakant Mane Sent: Saturday, February 10, 2007 10:46 PM To: python-list@python.org Subject: can't find a way to display and print pdf through python. hello all, I am stuc