質問編集履歴
1
Added Code
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,4 +14,22 @@
|
|
14
14
|
|
15
15
|
// 画面へ書き込み
|
16
16
|
document.write(xmlHttp.responseText)
|
17
|
+
```
|
18
|
+
|
19
|
+
```javascript
|
20
|
+
// wkhtmltopdfの処理
|
21
|
+
// babelでes5へ変換している
|
22
|
+
const url = "http://localhost:8080"
|
23
|
+
wkhtmltopdf(url, {
|
24
|
+
'pageSize': 'A3', //用紙サイズ
|
25
|
+
'dpi': '300', // 解像度
|
26
|
+
'header-html': `${url}/header.html`,
|
27
|
+
'footer-html': `${url}/footer.html`,
|
28
|
+
'output': "./pdf/output.pdf", // 出力ファイル名
|
29
|
+
'encoding': 'utf8', // 日本語対応,
|
30
|
+
'T': '5',
|
31
|
+
'B': '5',
|
32
|
+
'L': '5',
|
33
|
+
'R': '5'
|
34
|
+
})
|
17
35
|
```
|