Re:Headless mode in Firefox
by Sacho on Friday September 01, 2017 @04:50AM
(#15147044)
I don't think this feature is "utterly unusable". You can run your JS, wait for whatever events you want, and then pipe the resulting HTML to a --print-to-pdf command.
[ Parent
| on HN ]
Re:Headless mode in Firefox
by developer2 on Monday September 04, 2017 @10:41AM
(#15168507)
The primary reason to print a pdf would be to do so to any random 3rd party page. Sadly, you have no control over how 3rd party sites render/load their content. And --print-to-pdf likely captures the render of the page at some predetermined point, my guess being the "onload" event. Which, again, is not going to result in a fully rendered page for many sites that load in their primary content using AJAX.