WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
79926
PDF 'printing' produces bad content
https://bugs.webkit.org/show_bug.cgi?id=79926
Summary
PDF 'printing' produces bad content
Travis Glenn Hansen
Reported
2012-02-29 11:04:51 PST
Created
attachment 129476
[details]
badly rendered spline line When 'printing' to pdf on the link in the URL I get very strange output for the 'spline' lines. I get essentially the same output using phantomjs and arora. Chromium / FF print as expected.
Attachments
badly rendered spline line
(24.31 KB, image/png)
2012-02-29 11:04 PST
,
Travis Glenn Hansen
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Clement IGONET
Comment 1
2016-09-08 06:08:13 PDT
Workaround: --- qt-everywhere-enterprise-src-5.2.1/qtbase/src/gui/painting/qpdf.cpp 2013-08-25 22:04:41.000000000 +0200 +++ qt-everywhere-enterprise-new-5.2.1/qtbase/src/gui/painting/qpdf.cpp 2013-11-04 10:40:37.861325437 +0100 @@ -1061,7 +1061,16 @@ if (d->simplePen) { // draw strokes natively in this case for better output + QBrush oldBrush = d->brush; + if (d->opacity != 1.0 && !d->hasBrush) { + d->brush = d->pen.brush(); + setBrush(); + } *d->currentPage << QPdf::generatePath(p, QTransform(), d->hasBrush ? QPdf::FillAndStrokePath : QPdf::StrokePath); + if (oldBrush != d->brush) { + d->brush = oldBrush; + setBrush(); + } } else { if (d->hasBrush) *d->currentPage << QPdf::generatePath(p, d->stroker.matrix, QPdf::FillPath);
Alexey Proskuryakov
Comment 2
2022-07-29 10:53:25 PDT
The Qt port has been removed from WebKit, resolving this bug.
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