refactor(接口测试): 导出测试报告清晰度优化

--bug=1020956 --user=赵勇 [接口测试]github#20738接口测试-测试报告-场景测试报告导出的PDF文件查看时比较模糊 https://www.tapd.cn/55049933/s/1316696
This commit is contained in:
fit2-zhao 2022-12-19 08:54:33 +08:00 committed by fit2-zhao
parent 185f8e0117
commit 448cb0e081
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ export function downloadPDF(ele, pdfName) {
let imgWidth = 595.28; let imgWidth = 595.28;
let imgHeight = (595.28 / contentWidth) * contentHeight; let imgHeight = (595.28 / contentWidth) * contentHeight;
let pageData = canvas.toDataURL("image/jpeg", 0.1); let pageData = canvas.toDataURL("image/jpeg", 1.0);
let pdf = new JsPDF("", "pt", "a4"); let pdf = new JsPDF("", "pt", "a4");
//有两个高度需要区分一个是html页面的实际高度和生成pdf的页面高度(841.89) //有两个高度需要区分一个是html页面的实际高度和生成pdf的页面高度(841.89)
//当内容未超过pdf一页显示的范围无需分页 //当内容未超过pdf一页显示的范围无需分页