unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.6k stars 253 forks source link

JBIG2 Encoder support for inserting binary images into PDF #288

Closed kucjac closed 4 years ago

kucjac commented 4 years ago

This Pull Request adds support for inserting binary images into PDF and encoding using JBIG2 Encoder.


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #288 into development will decrease coverage by 6.08%. The diff coverage is 16.29%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #288      +/-   ##
===============================================
- Coverage        62.44%   56.35%   -6.09%     
===============================================
  Files              235      235              
  Lines            45524    45378     -146     
===============================================
- Hits             28428    25574    -2854     
- Misses           15896    16538     +642     
- Partials          1200     3266    +2066
Impacted Files Coverage Δ
creator/image.go 77.12% <0%> (-7.74%) :arrow_down:
internal/imageutil/rgbtobw.go 37.79% <0%> (ø)
contentstream/inline-image.go 40.56% <0%> (-8.9%) :arrow_down:
model/image.go 56.25% <0%> (-16.75%) :arrow_down:
internal/jbig2/document/document.go 38.76% <100%> (ø) :arrow_up:
core/encoding.go 51.4% <100%> (-9.51%) :arrow_down:
core/encoding_jbig2.go 19.36% <15.62%> (-3.59%) :arrow_down:
model/xobject.go 55.64% <29.41%> (-9.37%) :arrow_down:
internal/jbig2/bitmap/bitmap.go 76.76% <33.33%> (-2.32%) :arrow_down:
...ernal/jbig2/document/segments/symbol-dictionary.go 38.49% <0%> (-23.15%) :arrow_down:
... and 134 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c582323...f87d846. Read the comment docs.

codecov[bot] commented 4 years ago

Codecov Report

Merging #288 into development will decrease coverage by 0.17%. The diff coverage is 54.47%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #288      +/-   ##
===============================================
- Coverage        62.44%   62.26%   -0.18%     
===============================================
  Files              235      235              
  Lines            45524    45372     -152     
===============================================
- Hits             28428    28252     -176     
- Misses           15896    16445     +549     
+ Partials          1200      675     -525
Impacted Files Coverage Δ
internal/imageutil/rgbtobw.go 40.15% <0%> (ø)
contentstream/inline-image.go 49.28% <0%> (-0.18%) :arrow_down:
internal/jbig2/document/document.go 45.43% <100%> (+6.66%) :arrow_up:
creator/image.go 83.51% <25%> (-1.36%) :arrow_down:
core/encoding_jbig2.go 30.23% <43.85%> (+7.28%) :arrow_up:
internal/jbig2/bitmap/bitmap.go 82.67% <50%> (+3.59%) :arrow_up:
model/image.go 74.81% <63.88%> (+1.82%) :arrow_up:
model/xobject.go 66.66% <87.5%> (+1.65%) :arrow_up:
internal/jbig2/writer/writer.go 51.45% <0%> (-18.45%) :arrow_down:
internal/jbig2/bitmap/operators.go 50% <0%> (-18.43%) :arrow_down:
... and 78 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c582323...66529f4. Read the comment docs.