[Webkit-unassigned] [Bug 25866] Printing using media type other than "print"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 10 07:25:36 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=25866


Jack Cushman <jcushman at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jcushman at gmail.com




--- Comment #9 from Jack Cushman <jcushman at gmail.com>  2014-04-10 07:25:55 PST ---
The need for this patch (and various workarounds) is still being discussed downstream, primarily at:

https://github.com/ariya/phantomjs/issues/10623

But also e.g.:

https://github.com/ariya/phantomjs/issues/10669
https://groups.google.com/forum/#!topic/phantomjs/AD3zyRdkkfs
https://groups.google.com/d/topic/phantomjs/AU84T8K5zsg/discussion
https://github.com/imakewebthings/deck.js/issues/121

The usecase is, when you are using a headless browser like PhantomJS, it is often desirable to take a screenshot that:

(1) accurately reflects what a user would see in the browser;
(2) uses vector rather than raster format (much higher quality, much lower file size).

Both are 'easy' to accomplish by printing to PDF with the desired media type.

As Alexey noted, there are workarounds that try to manipulate the DOM to make the print media type look right, but they can't be counted on to fulfill goal (1) for arbitrary pages.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list