Re: Help to Auto open generated pdf files
Werner <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On 6/29/2014 11:40, Umar Yusuf wrote:
> Good day,
> I am able to generate .PDF files with python and report lab using the
> tutorials available.
>
> My question is how do I make a generated PDF to auto open immediately
> it is generated from my script?
>
> I don't want it to generate only, but to also open in a default PDF
> reader.
>
I use the desktop module:
try:
desktop.open(url.strip())
except OSError:
text = (_(u'Your default browser could not be opened, \
or the external program was not found or no \
external program is defined for this file.'))
https://pypi.python.org/pypi/desktop
Werner