maxpmaxp / pdfreader

Python API for PDF documents
MIT License
113 stars 26 forks source link

CCITTFaxDecoder: Support for pure one-dimensional encoding (Group 3, 1-D) #102

Open cdecompilador opened 1 year ago

cdecompilador commented 1 year ago

link to sample pdf The pdf is just a random image scanned from my printer, it fails at filters/ccittfax.py:548

maxpmaxp commented 1 year ago

PDF specification supports 3 types of encoding depending on K value:

I treat as a feature request to start supporting pure one dimensional encodings.

See https://www.fileformat.info/mirror/egff/ch09_05.htm#CH09-DMYID.1.1

maxpmaxp commented 4 months ago

Attaching the sample file as the link in the first comment doesn't work. fax-G31D.pdf