Bug 14782

Summary: Using dataWithPDFInsideRect to generate a PDF of an SVG can omit small items
Product: WebKit Reporter: Alan Shouls <alan>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alan, oliver
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Hacked CarbonWeb App and SVG files exhibiting the problem none

Description Alan Shouls 2007-07-27 05:01:35 PDT
Using dataWithPDFInsideRect to generate a PDF of an SVG can omit small items - if the PDF is larger then they appear correctly within the PDF.

1. Build and run the attached "Hacked CarbonWeb" application
2. Open one of the sample files in the 'svg render' in safari.
3. Paste the URL from the safari tool-bar into the "Hacked CarbonWeb" application but *don't* press return
4. Shrink the "Hacked CarbonWeb" window as small as possible
5. Now hit return
6. "CarbonWeb" generates a PDF and draws it in a new window
7. >> Things are missing (typically) text from the PDF.
Comment 1 Alan Shouls 2007-07-27 05:04:45 PDT
Created attachment 15704 [details]
Hacked CarbonWeb App and SVG files exhibiting the problem

This is source for the application mentioned in the bug report, and a set of SVG files that exhibit the problem. The SVG files are from the W3C site
Comment 2 David Kilzer (:ddkilzer) 2007-07-27 10:17:41 PDT
Please try this using the feature-branch of WebKit as it contains many more fixes to SVG.

Comment 3 Eric Seidel (no email) 2007-11-14 10:35:46 PST
I think this should be fixed by r27781.
Comment 4 Oliver Hunt 2007-11-14 10:37:15 PST
Indeed it should be