[reportlab-users] Help to Auto open generated pdf files
Werner
wernerfbd at gmx.ch
Mon Jun 30 01:45:35 EDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20140630/f397770c/attachment.html>
More information about the reportlab-users
mailing list