Skip to content

Add support for LZWDecode compression #1271

Closed
@Lucas-C

Description

Please explain your intent
Currently fpdf2 supports 4 compression methods for images:
https://github.com/py-pdf/fpdf2/blob/2.8.0/fpdf/image_parsing.py#L35

The PDF standard specification (cf. PDF32000_2008.pdf section 7.4 Filters) defines several other compression filters, including LZWDecode.

Recently, this filter was implemented by @MartinThoma in our companion library pypdf: py-pdf/pypdf#2883

Describe the solution you'd like
Support LZWDecode for images compression.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions