Skip to content

Commit

Permalink
PDFBOX-5879: avoid ClassCastException
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1920727 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Sep 17, 2024
1 parent 3cae633 commit ebc1f55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private void extractPages(int startPage, int endPage,
stripper.writeText(document, output);

// remove prepended transformation
((COSArray) page.getCOSObject().getItem(COSName.CONTENTS)).remove(0);
page.getCOSObject().getCOSArray(COSName.CONTENTS).remove(0);
}
page.setRotation(rotation);
}
Expand Down

0 comments on commit ebc1f55

Please sign in to comment.