You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"type":"pdf", // allowed file types: png, jpeg, pdf
57
+
"quality":"75", // only used for types png & jpeg
36
58
37
-
## documentations for more available options will follow soon :)
59
+
60
+
// Export options
61
+
"buffer":true, // only supported on certain systems
62
+
- or -
63
+
"filename":"/tmp/html-pdf-123-123.pdf"// The file path of the file that will be written. If you want to save the file permanently, you have to pass this option.
64
+
"directory":"/tmp"// The directory the file gets written into if no filename is defined. default: '/tmp'
65
+
}
66
+
```
67
+
68
+
The full options object gets converted to JSON and will get passed to the phantomjs script as third argument.
69
+
There are more options concerning the paperSize, header & footer options inside the phantomjs script.
0 commit comments