From 1c331c7e64ec748b2007afe914ea28b0b4f00404 Mon Sep 17 00:00:00 2001 From: yangjian Date: Sun, 28 Feb 2021 08:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E9=9B=86PDF?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_doc/report_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_doc/report_utils.py b/app_doc/report_utils.py index 05762b3..e00439d 100644 --- a/app_doc/report_utils.py +++ b/app_doc/report_utils.py @@ -770,7 +770,7 @@ class ReportPDF(): # 执行HTML转PDF try: - convert(temp_file_path,report_file_path) + convert('file://'+temp_file_path,report_file_path) except: logger.exception("生成PDF出错") return False