Skip to content

Commit

Permalink
udno
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Oct 1, 2024
1 parent a500f64 commit 2558259
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pypdf/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def decode(
class LZWDecode:
"""
Taken from:
https://github.com/katjas/PDFrenderer/blob/master/src/com/sun/pdfview/decode/LZWDecode.java
"""

Expand All @@ -382,8 +383,10 @@ def decode(self) -> bytes:
"""
TIFF 6.0 specification explains in sufficient details the steps to
implement the LZW encode() and decode() algorithms.
algorithm derived from:
http://www.rasip.fer.hr/research/compress/algorithms/fund/lz/lzw.html
and the PDFReference
Raises:
PdfReadError: If the stop code is missing
Expand Down

0 comments on commit 2558259

Please sign in to comment.