Re: Reportlab PDF viewer

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
Hi Paul,

The ReportLab toolkit doesn't provide a viewer, but your python3 process could 
open a viewer using eg os.system or the subprocess module. That of course 
requires you to have a viewer installed in your linux.

On my ubuntu I can do this inside a python3 script


os.system("/usr/bin/evince ./z....er/rml/narf/logo.pdf >/dev/null 2>&1 &")

and evince opens in my main display.

On 24/07/2019 04:31, Paul Henry via reportlab-users 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.
> 
........

-- 
Robin Becker
_______________________________________________
reportlab-users mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.