Skip to content

Commit

Permalink
PDFBOX-5876: pass subsampling for second read
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1920422 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Sep 3, 2024
1 parent 2dd2dcd commit eb0a4ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ private void initJPXValues()
// bits per component
// the colorspace of the image is used if the dictionary doesn't provide any value
PDStream stream = getStream();
try (COSInputStream is = stream.createInputStream())
DecodeOptions options = new DecodeOptions(cachedImageSubsampling);
try (COSInputStream is = stream.createInputStream(options))
{
DecodeResult decodeResult = is.getDecodeResult();
stream.getCOSObject().addAll(decodeResult.getParameters());
Expand Down

0 comments on commit eb0a4ed

Please sign in to comment.