Closed sciguy16 closed 1 year ago
Rust binding to wkhtmlto{pdf,image} might be a good choice if it can be updated to provide image support rather than just PDF.
alternative, dependent on google chrome and node: https://github.com/GoogleChrome/rendertron
The headless_chrome implementation works well enough for now
Try using this to archive the pages, and then render them inside iframes in the report: https://github.com/sciguy16/web-archive
As of 594d1d6 web screenshotting now uses the system webview - either GTK/Webkit on Linux or NativeWindowsGui/EdgeHTML on Windows.
Switched to headless chrome using chromiumoxide and it seems to be reliable
Three potential methods:
1 gives us the most control at the expense of potentially increasing the binary size fairly significantly and increasing build times 2 relies on the user having a suitable browser installed, but the APIs are fairly easy to use 3 gives us the least control and relies on browser binaries existing and working. May also require spawning a new browser process for each target, which does not scale well