This release brings a lot of new features for the Chromium module 🚀 🚀
New Features
- New property
--chromium-disable-web-security
- Don't enforce the same-origin policy. - New property
--chromium-disable-javascript
- Disable JavaScript (closes #175). - New form field
userAgent
- Override the default User-Agent header. - New form field
waitForExpression
- The JavaScript expression to wait before converting an HTML document to PDF until it returns true. - New form field
emulatedMediaType
- The media type to emulate, either "screen" or "print" - empty means "print" (closes #349). - New form field
failOnConsoleExceptions
- Return a 409 Conflict response if there are exceptions in the Chromium console (closes #262). - URL endpoint - now auto-detects
.woff2
,.woff
,.ttf
,.css
and.js
files send in the request and adds on the fly corresponding<link>
and<script>
HTML elements in the DOM of the target URL. - URL endpoint - auto-detection may be overridden thanks to the new form fields
extraLinkTags
andextraScriptTags
.
Deprecations
- The property
--chromium-user-agent
has been deprecated in favor of theuserAgent
form field. - The form field
waitForWindowStatus
has been deprecated in favor of thewaitForExpression
form field.
Misc
- Higher verbosity when converting with
unoconv
if--log-level=debug
.
Chore
- Update Go dependencies.
- Upgrade golangci-lint to
1.43.0
.