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
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
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
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
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.
>
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:
> >>
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
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
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
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
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.
>>
>>>
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
os.start does not work.. attribute error.
regards.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
>
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
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
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
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.
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
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
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
22 matches
Mail list logo