[Webkit-unassigned] [Bug 13485] New: -[WebHTMLView dataWithPDFInsideRect:] returns clipped results with -[WebHTMLView bounds]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 25 09:43:11 PDT 2007


           Summary: -[WebHTMLView dataWithPDFInsideRect:] returns clipped
                    results with -[WebHTMLView bounds]
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: m.tabbara at gmail.com

In WebKit (WebKit-SVN-r21081.dmg), the bug reappears for multicolumn layouts
using the preliminary CSS3 functionality. Specifically, dataWithPDFInsideRect
returns a PDF as if the multicolumn layout was not present. For example,
http://webkit.org/blog/?p=88 would produce a PDF with a single column. This is
also true when the same page is printed. 

+++ This bug was initially created as a clone of Bug #12419 +++

There appears to be no way for a user to render the current web page to a
single PDF file *exactly* as it appears on screen.

The value of [[[[webView mainFrame] frameView] documentView] bounds] is
incorrect when used to specify the bounds for a subsequent
dataWithPDFInsideRect: call on the documentView. The resulting PDF file on
pages with lots of text, such as the sample page loaded in this app, are
clipped at the very end.

In addition, WebKit does not respect the user's media style preferences when
calling dataWithPDFInsideRect:. Apparently, a different text layout engine is
being used, which is why the bounds result is incorrect.

To see a graphic example, build and run the attached application, follow the
instructions, and examine the results.

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

More information about the webkit-unassigned mailing list