Re: Reportlab PDF viewer
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
On Jul 23, 2019, at 8:31 PM, Paul Henry wrote:
>
> I have used reportlab to generate several pdf files using python3 on linux. Is there anyway to use reportlab to view the files once they are generated? I want to be able to open the file for viewing using python3 code.
No. Reportlab can generate PDFs, but it can’t render them. You need to launch a viewer, like Adobe Acrobat. On Windows, you can say
os.system("start xxx.pdf”)
on MacOS
os.system(“open xxx.pdf”)
and on most Linux distributions
os.system(“xdg-open xxx.pdf”)
—
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.