Skip to content

Commit

Permalink
Fix stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita committed Feb 7, 2025
1 parent e2828d2 commit 0a85428
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pdf/src/annotations/stamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,18 +505,17 @@

let aInRect = this.GetInRect();
let nBorderW = this.GetWidth();
// original rect
// original rect (save)
if (memory.docRenderer) {
memory.WriteDouble(aInRect[0] - nBorderW / 2); // x1
memory.WriteDouble(aInRect[3] - nBorderW / 2); // y1
memory.WriteDouble(aInRect[4] + nBorderW / 2); // x2
memory.WriteDouble(aInRect[1] + nBorderW / 2); // y2
}
else {
memory.WriteDouble(aInRect[0]); // x1
memory.WriteDouble(aInRect[3]); // y1
memory.WriteDouble(aInRect[4]); // x2
memory.WriteDouble(aInRect[1]); // y2
else { // copying
aInRect.forEach(function(measure) {
memory.WriteDouble(measure);
});
}

let nEndPos = memory.GetCurPosition();
Expand Down

0 comments on commit 0a85428

Please sign in to comment.