electronにてPDF作成を作っております。
jqueryのpdfmake.min.jsとvfs_fonts.jsとhogehoge.jsを読み込み、
lang
1pdfMake.createPdf(dd).print();
でローカルにダウンロードされ、PDFをクリックすると印刷ができるようになっています。
一度ローカルにダウンロードされずに直接印刷ができるようになるにはどうしたらよろしいでしょうか。
hogehoge.jsには
lang
1var dd = { 2 content: [ 3 'This paragraph fills full width, as there are no columns. Next paragraph however consists of three columns', 4 { 5 columns: [ 6 { 7 // auto-sized columns have their widths based on their content 8 width: 'auto', 9 text: 'First column' 10 }, 11 { 12 // star-sized columns fill the remaining space 13 // if there's more than one star-column, available width is divided equally 14 width: '*', 15 text: 'Second column' 16 }, 17 { 18 // fixed width 19 width: 100, 20 text: 'Third column' 21 }, 22 { 23 // % width 24 width: '20%', 25 text: 'Fourth column' 26 } 27 ], 28 // optional space between columns 29 columnGap: 10 30 }, 31 'This paragraph goes below all columns and has full width' 32], 33styles: { 34 header: { 35 fontSize: 22, 36 bold: true 37 }, 38 anotherStyle: { 39 italics: true, 40 alignment: 'right' 41 } 42 } 43};
になっております。
宜しくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。