diff --git a/src/core/annotation.js b/src/core/annotation.js index e5fa35cdad507..054487d57ddb7 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -4096,14 +4096,7 @@ class InkAnnotation extends MarkupAnnotation { } static async createNewAppearanceStream(annotation, xref, params) { - const { color, rect, rotation, paths, thickness, opacity } = annotation; - const [x1, y1, x2, y2] = rect; - let w = x2 - x1; - let h = y2 - y1; - - if (rotation % 180 !== 0) { - [w, h] = [h, w]; - } + const { color, rect, paths, thickness, opacity } = annotation; const appearanceBuffer = [ `${thickness} w 1 J 1 j`,