You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for transparent groups, ensure endGroup would merge sub-canvas text/line/etc. back to primary output data. this completes the fix for #418 (#420)
Copy file name to clipboardExpand all lines: lib/pdfcanvas.js
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -436,8 +436,33 @@ export default class CanvasRenderingContext2D_ {
436
436
}
437
437
438
438
// Method signature matches Canvas API
439
+
// MQZ. 2025.01: Enhanced to support transparency groups which handled by base/display/canvas.js when invokes endGroup()
440
+
// This handles transparency groups where text/lines/fills are rendered to a temporary canvas and then composited back to the main canvas via drawImage()
439
441
drawImage(image,var_args){
440
-
//MQZ. no image drawing support for now
442
+
// If source has our custom data arrays (i.e., it's a PDFCanvas), merge them to this canvas
0 commit comments