can't find a way to display and print pdf through python.
jim-on-linux
inq1ltd at verizon.net
Tue Feb 13 23:04:58 EST 2007
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 Salmela
>
> <tiedon_jano at hotmail.com> 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
> > document read in. I have no idea why, because
> > Acrobat Reader sure ain't my browser;)
>
> Most likely Adobe installed the Acrobat
> plug-in for the browser... The browser
> identifies the file as PDF and passes it to the
> plug-in for rendering.
> --
> Wulfraed Dennis Lee Bieber KD6MOG
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support
> Staff: web-asst at bestiaria.com)
> HTTP://www.bestiaria.com/
More information about the Python-list
mailing list