diff --git a/src/display/editor/stamp.js b/src/display/editor/stamp.js index 799093eee..567bd8abf 100644 --- a/src/display/editor/stamp.js +++ b/src/display/editor/stamp.js @@ -343,6 +343,8 @@ class StampEditor extends AnnotationEditor { } #drawBitmap(width, height) { + width = Math.ceil(width); + height = Math.ceil(height); const canvas = this.#canvas; if (!canvas || (canvas.width === width && canvas.height === height)) { return;