Skip to content

Commit

Permalink
[pdf] Fix for text art
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita committed Sep 27, 2024
1 parent 86f78a1 commit 77d4857
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pdf/src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -4471,11 +4471,12 @@ var CPresentation = CPresentation || function(){};

let oController = this.GetController();

let oTextArt = this.GetController().createTextArt(nStyle, false);
let oTextArt = this.GetController().createTextArt(nStyle, false);
oTextArt.SetDocument(this);
oTextArt.SetPage(nPage);
oTextArt.Recalculate();

oTextArt.checkExtentsByDocContent();

let oXfrm = oTextArt.getXfrm();
let nRotAngle = this.Viewer.getPageRotate(nPage);

Expand Down
2 changes: 2 additions & 0 deletions pdf/src/drawings/drawingPrototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@

let result = content.EnterText(value);
content.RecalculateCurPos();

this.checkExtentsByDocContent && this.checkExtentsByDocContent();
return result;
};
CPdfDrawingPrototype.prototype.CorrectEnterText = function(oldValue, newValue) {
Expand Down
1 change: 0 additions & 1 deletion pdf/src/drawings/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
this.recalculateTransform();
this.updateTransformMatrix();
this.recalculate();
this.checkExtentsByDocContent();
this.recalculateShdw();
this.SetNeedRecalc(false);
};
Expand Down

0 comments on commit 77d4857

Please sign in to comment.