[Webkit-unassigned] [Bug 112081] Printing to PDF should produce internal links when HTML has internal links

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 26 14:20:37 PDT 2013


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





--- Comment #27 from Alexey Proskuryakov <ap at webkit.org>  2013-03-26 14:23:04 PST ---
(From update of attachment 194404)
View in context: https://bugs.webkit.org/attachment.cgi?id=194404&action=review

> In any case, at the Skia level, we definitely have a different SkPDFDevice/SkCanvas for each page and the destinations need to get written to the correct SkPDFDevice for the page that the destination appears on.

I don't understand how this can work. If every page is separate, how do cross-page links work at all? Surely there is an object in Skia that represents the whole multi-page document? For example in CG, it's a CGPDFContext, and one calls CGPDFContextBeginPage when moving to the next page.

> Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:1113
> +    return platformContext()->printing();

I'm not sure if this is a good place to make such checks. A GraphicsContext may not have any idea about whether it's printing or not, it's the responsibility of both higher level and lower level code.

-- 
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