修改base64报告的分辨率比例
This commit is contained in:
parent
500cb31c64
commit
8e4b2c3839
@ -9,8 +9,8 @@ const htmlToPdf = {
|
||||
taintTest: false,
|
||||
logging: false,
|
||||
useCORS: true,
|
||||
dpi: window.devicePixelRatio * 4, // 将分辨率提高到特定的DPI 提高四倍
|
||||
scale: 4 // 按比例增加分辨率
|
||||
dpi: window.devicePixelRatio * 1, // 将分辨率提高到特定的DPI 提高四倍
|
||||
scale: 1 // 按比例增加分辨率
|
||||
}).then((canvas) => {
|
||||
const pdf = new jsPDF('p', 'mm', 'a4') // A4纸,纵向
|
||||
const ctx = canvas.getContext('2d'),
|
||||
@ -55,8 +55,8 @@ const htmlToPdf = {
|
||||
taintTest: false,
|
||||
logging: false,
|
||||
useCORS: true,
|
||||
dpi: window.devicePixelRatio * 4, // 将分辨率提高到特定的DPI 提高四倍
|
||||
scale: 4 // 按比例增加分辨率
|
||||
dpi: window.devicePixelRatio * 1, // 将分辨率提高到特定的DPI 提高四倍
|
||||
scale: 1 // 按比例增加分辨率
|
||||
}).then((canvas) => {
|
||||
const pdf = new jsPDF('p', 'mm', 'a4') // A4纸,纵向
|
||||
const ctx = canvas.getContext('2d'),
|
||||
|
Loading…
Reference in New Issue
Block a user