let printFile = {
autoprint: true,
mediaSize: {'name': 'CUSTOM', 'width_microns': 215900, 'height_microns': 299400, 'custom_display_name':'Voucher', 'is_default': true},
marginsType: 0,
marginsCustom: {"marginBottom":0,"marginLeft":10,"marginRight":10,"marginTop": 0},
headerFooterEnabled : false,
landscape: false,
shouldPrintBackgrounds: false,
copies: 0,
headerString: '',
footerString: '',
printer: '',
pdf_path: path.dirname(process.execPath)
}
printer
这个属性在生存PDF前,被我手动删除了。
但是那个path怎么设置都不对,不知道该怎么写这个PDF_PATH,向各位求教了
pdf是路径加文件名~