{
"panels": [{
"index": 0,
"name": 1,
"height": 12,
"width": 12,
"paperHeader": 0,
"paperFooter": 31.515151515151512,
"printElements": [{
"options": {
"left": 1.5,
"top": 0,
"height": 25.5,
"width": 25.5,
"title": "二维码",
"qrcodeType": "qrcode",
"testData": "qrcode",
"field": "qrcode",
"qrCodeLevel": 0,
"coordinateSync": false,
"widthHeightSync": false,
"hideTitle": true,
"zIndex": 1,
"right": 27.375,
"bottom": 23.375003814697266,
"vCenter": 14.625,
"hCenter": 10.625003814697266
},
"printElementType": {
"title": "二维码",
"type": "qrcode"
}
}],
"paperNumberLeft": 4,
"paperNumberTop": 12,
"paperNumberContinue": true,
"watermarkOptions": {
"content": "",
"rotate": 25,
"timestamp": true,
"format": "YYYY-MM-DD HH:mm",
"fillStyle": "rgba(184, 184, 184, 0.3)",
"fontSize": "14px",
"width": 200,
"height": 200
},
"panelLayoutOptions": {
"layoutType": "column",
"layoutRowGap": 0,
"layoutColumnGap": 0
}
}]
}
左侧为 vue-plugin-hiprint getPdf 效果,右侧为 electron-hiprint 提供 render-pdf 效果
后台导出.pdf
前台导出1212.pdf
附json 点击查看
{ "panels": [{ "index": 0, "name": 1, "height": 12, "width": 12, "paperHeader": 0, "paperFooter": 31.515151515151512, "printElements": [{ "options": { "left": 1.5, "top": 0, "height": 25.5, "width": 25.5, "title": "二维码", "qrcodeType": "qrcode", "testData": "qrcode", "field": "qrcode", "qrCodeLevel": 0, "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "zIndex": 1, "right": 27.375, "bottom": 23.375003814697266, "vCenter": 14.625, "hCenter": 10.625003814697266 }, "printElementType": { "title": "二维码", "type": "qrcode" } }], "paperNumberLeft": 4, "paperNumberTop": 12, "paperNumberContinue": true, "watermarkOptions": { "content": "", "rotate": 25, "timestamp": true, "format": "YYYY-MM-DD HH:mm", "fillStyle": "rgba(184, 184, 184, 0.3)", "fontSize": "14px", "width": 200, "height": 200 }, "panelLayoutOptions": { "layoutType": "column", "layoutRowGap": 0, "layoutColumnGap": 0 } }] }