WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
132597
snapshot saved to pdf is not a vector
https://bugs.webkit.org/show_bug.cgi?id=132597
Summary
snapshot saved to pdf is not a vector
p3e226p+xj6ojed
Reported
2014-05-05 20:51:09 PDT
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); cairo_paint(cr); cairo_surface_flush(pdf_surface); cairo_surface_finish(pdf_surface); 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?
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug