Skip to content

Commit

Permalink
Account for non-(0,0) CropBoxes — Fixes #174
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzido committed Jul 28, 2017
1 parent 7227fe0 commit 9f62c30
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ protected ObjectExtractorStreamEngine(PDPage page) {
this.pageTransform.concatenate(AffineTransform.getTranslateInstance(0, cb.getHeight()));
this.pageTransform.concatenate(AffineTransform.getScaleInstance(1, -1));
}

this.pageTransform.translate(-cb.getLowerLeftX(), -cb.getLowerLeftY());
}

@Override
Expand Down

0 comments on commit 9f62c30

Please sign in to comment.