保存reportlab pdf文件而不显示i

2024-06-26 10:35:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用reportab生成一个pdf文件。在

我剧本的最后几句话如下:

doc.build(story)
os.system('xxxx.pdf')  # show the pdf file.

然后离开脚本,将创建的pdf文件保存在我喜欢的地方。但是,我想知道如何保存文件而不显示它。在

^{pr2}$

如何自动保存文件


Tags: 文件thebuild脚本docpdfosshow