Skip to content

Commit

Permalink
WCAG. Fix СTM matrix of XForm
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Feb 20, 2024
1 parent cb0049c commit 24e2160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ public void parseChunk(Operator rawOperator, List<COSBase> arguments) {
key = parentObjectKey;
markedContent = parentMarkedContent;
}
GFSAXForm xForm = new GFSAXForm((PDXForm)xObject, resourceHandler, graphicsState, pageNumber,
GraphicsState xFormGraphicsState = graphicsState.clone();
xFormGraphicsState.setCTM(xFormGraphicsState.getCTM().multiply(new Matrix(((PDXForm)xObject).getMatrix())));
GFSAXForm xForm = new GFSAXForm((PDXForm)xObject, resourceHandler, xFormGraphicsState, pageNumber,
key, markedContent);
artifacts.addAll(xForm.getArtifacts());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Matrix() {
matrixArray = new double[] {1, 0, 0, 1, 0, 0};
}

private Matrix(double[] src) {
public Matrix(double[] src) {
matrixArray = src;
}

Expand Down

0 comments on commit 24e2160

Please sign in to comment.