Bug 93740 - gtk_widget_draw of a WebKitWebView in a Cairo PDF surface is not longer in vector format
Summary: gtk_widget_draw of a WebKitWebView in a Cairo PDF surface is not longer in ve...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 13:33 PDT by Emmanuel Rodriguez
Modified: 2017-03-11 10:50 PST (History)
1 user (show)

See Also:


Attachments
Sample program showing the problem (2.30 KB, text/x-csrc)
2012-08-10 13:33 PDT, Emmanuel Rodriguez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Rodriguez 2012-08-10 13:33:06 PDT
Created attachment 157801 [details]
Sample program showing the problem

With WebKitGtk version 1.6 I'm able to save a webpage as a vectorial PDF through Cairo properly. With the release 1.8 and the testing 1.9 this is no longer possible. A PDF can be generated through Cairo but the contents are a huge bitmap.

Text elements can no longer be selected in the output file. Also zooming in the PDF document is no longer smooth.

Something changed between the release 1.6 and 1.8 and cairo surfaces no longer work as expected.

See the attached test case.

Compile with: cc -std=c99 -o screenshot screenshot.c `pkg-config --cflags --libs webkitgtk-3.0 cairo-pdf`
Run it with: ./screenshot http://webkitgtk.org/
Open the PDF a.pdf and look at the result.