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,向各位求教了
如何設置nw.js中print的pdf_path?
心有法竹
2018-11-22 17:14:31