refactor(接口测试): 导出测试报告清晰度优化
--bug=1020956 --user=赵勇 [接口测试]github#20738接口测试-测试报告-场景测试报告导出的PDF文件查看时比较模糊 https://www.tapd.cn/55049933/s/1316696
This commit is contained in:
parent
185f8e0117
commit
448cb0e081
|
@ -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一页显示的范围,无需分页
|
||||||
|
|
Loading…
Reference in New Issue