1
0
Fork 0
forked from josch/img2pdf

Compare commits

..

2 commits

Author SHA1 Message Date
b23d82c45e Use mono.jb2 for tests
This also uncovered a bug in jbig2enc where it uses the wrong unit
for resolution.
2023-11-29 00:00:00 +00:00
085dd192f6 Add support for JBIG2 (generic coding)
Implements the proposal detailed at
josch/img2pdf#112 (comment)

This is a limited implementation of JBIG2, which can be extended to
support multiple pages, symbol tables, and other features of the format
in the future.

To test, I included a test fixture. You can also download 042.bmp (the same
one as @josch already downloaded in josch/img2pdf#112 (comment)
from https://git.ghostscript.com/?p=tests.git;a=blob_plain;f=jbig2/042.bmp;hb=HEAD
and run the following command:

  jbig2 042.bmp | img2pdf > 042.pdf

This results in a small PDF, just as @josch originally found in the
comment mentioned above.

This is my first contribution to this repository so let me know if
something else is needed. Thanks for a great library!
2023-11-29 00:00:00 +00:00

Diff content is not available