lib/Dhalang/puppeteer.rb in Dhalang-0.6.2 vs lib/Dhalang/puppeteer.rb in Dhalang-0.6.3
- old
+ new
@@ -11,18 +11,21 @@
navigationWaitForXPath: '',
userAgent: '',
isHeadless: true,
viewPort: '',
httpAuthenticationCredentials: '',
- isAutoHeight: false
+ isAutoHeight: false,
+ chromeOptions: []
}
private_constant :USER_OPTIONS
DEFAULT_PDF_OPTIONS = {
scale: 1,
displayHeaderFooter: false,
headerTemplate: '',
footerTemplate: '',
+ headerTemplateFile: '',
+ footerTemplateFile: '',
printBackground: true,
landscape: false,
pageRanges: '',
format: 'A4',
width: '',