[reportlab-users] Reportlab PDF viewer

Tim Roberts timr at probo.com
Wed Jul 24 02:31:54 EDT 2019


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, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20190723/84ff9be1/attachment.html>


More information about the reportlab-users mailing list