Skip to content

Commit

Permalink
fix drawSvg to pass blendMode option
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusrdSantos committed Dec 5, 2024
1 parent 7d576d5 commit ec539a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/PDFPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1610,13 +1610,15 @@ export default class PDFPage {
assertOrUndefined(options.y, 'options.y', ['number']);
assertOrUndefined(options.width, 'options.width', ['number']);
assertOrUndefined(options.height, 'options.height', ['number']);
assertIsOneOfOrUndefined(options.blendMode, 'options.blendMode', BlendMode);

drawSvg(this, svg, {
x: options.x ?? this.x,
y: options.y ?? this.y,
fonts: options.fonts,
width: options.width,
height: options.height,
blendMode: options.blendMode,
});
}

Expand Down

0 comments on commit ec539a0

Please sign in to comment.