BUG: compress_content_stream not readable in Adobe Acrobat#1698
BUG: compress_content_stream not readable in Adobe Acrobat#1698MartinThoma merged 5 commits intopy-pdf:mainfrom
Conversation
fixes py-pdf#1654 ContentStream must be stored as individual objects
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1698 +/- ##
==========================================
+ Coverage 92.37% 92.47% +0.10%
==========================================
Files 33 33
Lines 6480 6487 +7
Branches 1281 1282 +1
==========================================
+ Hits 5986 5999 +13
+ Misses 320 317 -3
+ Partials 174 171 -3
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
many change in the tests as the issue is coming from the fact that streams must be indirect_objects: compression can only be applied to pages part of PdfWriter |
|
all good |
|
|
||
|
|
||
| @pytest.mark.enable_socket() | ||
| @pytest.mark.slow() |
There was a problem hiding this comment.
Note for myself: The slowest test now is the one with https://corpora.tika.apache.org/base/docs/govdocs1/950/950337.pdf-tika-950337.pdf with about 1.4s. We only want to mark tests with > 5s with slow, so removing the slow flag here is fine.
|
I've just noticed that the benchmark failed. Did this PR make a breaking change or was the benchmark broken before? |
fixes #1654
ContentStream must be stored as individual objects