Commit e7eb667
fix(stream): return raw content for uncompressed streams in decompressed_content()
When a stream has no /Filter entry, decompressed_content() would fail
because filters() propagates the dictionary lookup error. Unfiltered
streams are already uncompressed, so the correct behavior is to return
the raw content as-is.
This fixes text extraction from Form XObjects generated by pdfrw and
similar tools that use uncompressed streams (no /Filter, just raw
content like "/FullPage Do").1 parent afe79a4 commit e7eb667
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
682 | 686 | | |
683 | 687 | | |
684 | 688 | | |
| |||
889 | 893 | | |
890 | 894 | | |
891 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
892 | 911 | | |
0 commit comments