Skip to content

Commit

Permalink
Let's save metadata streams as plain text. This makes them more acces…
Browse files Browse the repository at this point in the history
…sible to external tools like search engines etc.
  • Loading branch information
torakiki committed Jun 28, 2024
1 parent f51416b commit 5775ecd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/sejda/sambox/cos/COSStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,8 @@ private boolean canCompress()
if (filters instanceof COSArray filtersArray)
{
return CAN_COMPRESS.containsAll(filtersArray);

}
return true;
return !COSName.METADATA.equals(getCOSName(COSName.TYPE));
}

@Override
Expand Down

0 comments on commit 5775ecd

Please sign in to comment.