[Webkit-unassigned] [Bug 132597] New: snapshot saved to pdf is not a vector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 5 20:50:47 PDT 2014


           Summary: snapshot saved to pdf is not a vector
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: p3e226p+xj6ojed at sharklasers.com

Similar to: https://bugs.webkit.org/show_bug.cgi?id=93740

Consider this webkit2gtk snippet:

// get a snapshot
cairo_surface_t *surface = webkit_web_view_get_snapshot_finish(web_view, result, &error);
int width = cairo_image_surface_get_width(surface);
int height = cairo_image_surface_get_height(surface);

// copy the snapshot to an pdf file
cairo_surface_t *pdf_surface = cairo_pdf_surface_create(PDFFILE, (double) width, (double) height);
cairo_t *cr = cairo_create(pdf_surface);
cairo_set_source_surface(cr, surface, 0, 0);

The resulting PDF is not a vector, but instead just contains a bitmap image. The same is true when saving to SVG.

How can we save a WebView snapshot as a true vector PDF/SVG?

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