unidoc / unipdf

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

Add cached Stream method for CMap objects #382

Closed adrg closed 4 years ago

adrg commented 4 years ago

Related to https://github.com/unidoc/unipdf/issues/378 and https://github.com/unidoc/unipdf/issues/318.


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #382 into development will increase coverage by 5.81%. The diff coverage is 78.57%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #382      +/-   ##
===============================================
+ Coverage        56.28%   62.10%   +5.81%     
===============================================
  Files              239      239              
  Lines            46254    46261       +7     
===============================================
+ Hits             26036    28732    +2696     
- Misses           16864    16866       +2     
+ Partials          3354      663    -2691     
Impacted Files Coverage Δ
model/font.go 64.71% <50.00%> (+7.15%) :arrow_up:
internal/cmap/cmap.go 85.39% <83.33%> (+5.47%) :arrow_up:
internal/jbig2/bitmap/testhelpers.go 34.36% <0.00%> (+0.88%) :arrow_up:
internal/jbig2/writer/writer.go 51.45% <0.00%> (+0.97%) :arrow_up:
creator/division.go 89.13% <0.00%> (+1.08%) :arrow_up:
model/sighandler/sighandler_rsa_sha1.go 5.68% <0.00%> (+1.13%) :arrow_up:
creator/invoice.go 89.76% <0.00%> (+1.19%) :arrow_up:
internal/transform/matrix.go 50.00% <0.00%> (+1.35%) :arrow_up:
annotator/form_field.go 14.78% <0.00%> (+1.40%) :arrow_up:
model/optimize/optimizer.go 88.57% <0.00%> (+1.42%) :arrow_up:
... and 149 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 4f96762...98cd4e1. Read the comment docs.