unidoc / unipdf

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

Fix CMap generation and serialization for composite fonts #344

Closed adrg closed 4 years ago

adrg commented 4 years ago

Related to https://github.com/unidoc/unipdf/issues/322.


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #344 into development will increase coverage by 4.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #344      +/-   ##
===============================================
+ Coverage        52.44%   56.46%   +4.01%     
===============================================
  Files              236      236              
  Lines            45706    45715       +9     
===============================================
+ Hits             23972    25814    +1842     
+ Misses           18642    16575    -2067     
- Partials          3092     3326     +234     
Impacted Files Coverage Δ
internal/cmap/cmap.go 79.11% <100.00%> (+0.25%) :arrow_up:
model/font_composite.go 61.97% <100.00%> (+6.83%) :arrow_up:
internal/jbig2/document/segments/text-region.go 41.05% <0.00%> (+0.22%) :arrow_up:
...ernal/jbig2/document/segments/symbol-dictionary.go 38.49% <0.00%> (+0.23%) :arrow_up:
internal/jbig2/bitmap/bitmap.go 76.76% <0.00%> (+0.28%) :arrow_up:
model/writer.go 75.63% <0.00%> (+0.42%) :arrow_up:
internal/jbig2/document/segments/generic-region.go 47.75% <0.00%> (+1.18%) :arrow_up:
fdf/parser.go 40.27% <0.00%> (+1.38%) :arrow_up:
internal/jbig2/document/segments/kind.go 11.59% <0.00%> (+1.44%) :arrow_up:
model/reader.go 46.60% <0.00%> (+1.63%) :arrow_up:
... and 48 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 f60e313...0e25185. Read the comment docs.