-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phantom and Chrome #97
Comments
I've taken a look at Chrome's headless API and it looks like we'll still need a Decktape of some kind to script and output the slides correctly. One of the reasons I moved from manual Chrome printing to Decktape is because Remark doesn't size the PDF output correctly. The slide only occupies a smaller portion of the document in comparison to the rest of the page. You have to mess around with the window sizing. |
This is the method that will print out a PDF. My guess is that Remark slides would need a sleep for some time, run |
Thanks for starting the discussion. They are multiple points here that I would articulate under the two following parts: Web browser drivers supportIdeally, DeckTape would work across the various Web browser drivers available out there. We've already tried that approach with SlimerJS in #7. Generally, they tend to implement / support the PhantomJS API and it seems that's a direction the Chrome dev team would be willing to take. That being said, all these drivers PDF rendering API is implemented by delegating to the browser PDF printer (that an actually end user would access through the Print page menu item) which tends to lead to poor results for HTML presentations. Hence the DeckTape value proposition to add a new PDF Printer API (astefanutti/phantomjs@f0259c9) and slide navigation engine ( Line 288 in 41861c1
It's quite straightforward to implement such an API in PhantomJS as it leverages low level APIs from Qt. However, my current understanding is that it requires a lot more work for other browser drivers. That being said I'd be glad to be proved wrong 😉. Anyway, that leads to the question of the PhantomJS / WebKit version... PhantomJS projectThe problem with the current PhantomJS version that's used by DeckTape is that it relies on QtWebKit that's been deprecated and that depends on an old WebKit version. That means most recent CSS3 features are not supported for example. Hence the question of the PhantomJS development activity, that I'd split in two points:
In case the later point turns to be conclusive, it somehow lowers the importance of the multiple Web browser drivers support. |
The PhantomJS maintainer is stepping down because Chrome and Firefox are going to support headless browsers now. Do you have any thoughts on Decktape given this news? Will Decktape start using Chrome or does headless mean you can execute a bash script to output a PDF?
I'm more starting this as thread for discussion.
The text was updated successfully, but these errors were encountered: