Skip to content

Commit 7b2e97d

Browse files
committed
fix exporting to pdf (DVF-2550)
1 parent 1f9d21e commit 7b2e97d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vector/Stage.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,11 @@ acgraph.vector.Stage.prototype.addPdfData_ = function(data, opt_paperSizeOrWidth
14181418
} else {
14191419
svgStr = this.toSvg();
14201420
}
1421+
1422+
//fix for magic bug with svg to pdf converter. This fill-opacity attr applyed to clipPath element that affected
1423+
//opacity of text elements below (DVF-2550 (p9 and p10)).
1424+
svgStr = svgStr.replace(/fill="#FFFFFF" fill-opacity="0\.0+1"/g, 'fill="none"');
1425+
14211426
data['data'] = svgStr;
14221427
data['dataType'] = 'svg';
14231428
data['responseType'] = 'file';

0 commit comments

Comments
 (0)