Skip to content

Releases: go-pdf/fpdf

Release v0.9.0

13 Sep 18:40
Compare
Choose a tag to compare

What's Changed

  • ci: update codecov/codecov-action@v3 by @sbinet in #39
  • all: add Go-1.21, drop Go-1.19 by @sbinet in #45
  • fpdf: update LICENSE by @sbinet in #46
  • fpdf: use an integer-based representation for PDF-versions by @sbinet in #48
  • fpdf: handle 16-bit depth PNG files by @sbinet in #50

Full Changelog: v0.8.0...v0.9.0

Release v0.8.0

21 Apr 11:57
fa1c31e
Compare
Choose a tag to compare

What's Changed

  • all: fix race in AddUTF8FontFromBytes by @sbinet in #38
  • fpdf: allow to set global document language by @vdobler in #36

New Contributors

Full Changelog: v0.7.0...v0.8.0

Release v0.7.0

03 Apr 08:35
ed4c0af
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.7.0

Release v0.6.0

03 Apr 08:33
Compare
Choose a tag to compare

What's Changed

  • fpdf: discard CellFormat commands when height is zero by @sbinet in #15
  • embed font files with //go:embed by @flibustenet in #14
  • all: properly acknowledge original fork by @sbinet in #18

New Contributors

Full Changelog: v0.5.0...v0.6.0

Release v0.5.0

13 Oct 19:16
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.0

Release v0.4.1

01 Jul 08:33
Compare
Choose a tag to compare

retract invalid v1.4.2 tag.

Release v0.4.0

23 Jun 14:08
Compare
Choose a tag to compare

improving PNG+GIF performances:

name              old time/op    new time/op    delta
ParsePNG_rgb-8      22.8ms ± 1%    16.0ms ± 3%  -29.81%  (p=0.000 n=25+30)
ParsePNG_gray-8      660µs ± 3%     624µs ± 4%   -5.54%  (p=0.000 n=28+30)
ParsePNG_small-8    2.49µs ± 2%    2.12µs ± 3%  -14.83%  (p=0.000 n=30+30)
ParseJPG-8          36.3µs ± 4%    36.8µs ± 5%     ~     (p=0.070 n=30+30)
ParseGIF-8           410µs ± 3%     409µs ± 4%     ~     (p=0.562 n=30+29)

name              old alloc/op   new alloc/op   delta
ParsePNG_rgb-8      26.4MB ± 0%     4.2MB ±10%  -84.04%  (p=0.000 n=29+30)
ParsePNG_gray-8     2.56MB ± 0%    2.49MB ± 0%   -2.73%  (p=0.000 n=30+30)
ParsePNG_small-8    8.96kB ± 0%    9.84kB ± 0%   +9.73%  (p=0.000 n=30+30)
ParseJPG-8           274kB ± 0%     274kB ± 0%   -0.00%  (p=0.002 n=30+30)
ParseGIF-8           897kB ± 0%     898kB ± 0%   +0.10%  (p=0.000 n=30+30)

name              old allocs/op  new allocs/op  delta
ParsePNG_rgb-8         400 ± 0%       292 ± 0%  -27.00%  (p=0.000 n=30+28)
ParsePNG_gray-8        164 ± 0%       114 ± 0%  -30.49%  (p=0.000 n=30+30)
ParsePNG_small-8      35.0 ± 0%      10.0 ± 0%  -71.43%  (p=0.000 n=30+30)
ParseJPG-8            12.0 ± 0%      12.0 ± 0%     ~     (all equal)
ParseGIF-8             214 ± 0%       191 ± 0%  -10.75%  (p=0.000 n=30+30)

Release v0.3.1

15 Jun 07:28
Compare
Choose a tag to compare
all: use raw endpoint from github

Release v0.3.0

09 Jun 18:04
Compare
Choose a tag to compare

Improve PDF-writing performances.

name       old time/op    new time/op    delta
LineTo-8      500ns ± 1%     343ns ± 1%   -31.47%  (p=0.000 n=19+18)
CurveTo-8    1.00µs ± 2%    0.74µs ± 0%   -25.86%  (p=0.000 n=20+18)

name       old alloc/op   new alloc/op   delta
LineTo-8      77.0B ± 0%     47.5B ± 1%   -38.38%  (p=0.000 n=17+20)
CurveTo-8      228B ± 7%      118B ± 1%   -48.33%  (p=0.000 n=20+20)

name       old allocs/op  new allocs/op  delta
LineTo-8       3.00 ± 0%      0.00       -100.00%  (p=0.000 n=20+20)
CurveTo-8      5.00 ± 0%      0.00       -100.00%  (p=0.000 n=20+20)
name        old time/op    new time/op    delta
RGB_grg-8      808ns ± 0%     576ns ± 0%  -28.66%  (p=0.000 n=17+18)
RGB_gray-8     779ns ± 0%     584ns ± 0%  -25.01%  (p=0.000 n=18+18)
RGB_full-8     746ns ± 1%     568ns ± 1%  -23.89%  (p=0.000 n=19+19)

name        old alloc/op   new alloc/op   delta
RGB_grg-8      64.0B ± 0%     24.0B ± 0%  -62.50%  (p=0.000 n=20+20)
RGB_gray-8     48.0B ± 0%     24.0B ± 0%  -50.00%  (p=0.000 n=20+20)
RGB_full-8     48.0B ± 0%     24.0B ± 0%  -50.00%  (p=0.000 n=20+20)

name        old allocs/op  new allocs/op  delta
RGB_grg-8       5.00 ± 0%      1.00 ± 0%  -80.00%  (p=0.000 n=20+20)
RGB_gray-8      4.00 ± 0%      1.00 ± 0%  -75.00%  (p=0.000 n=20+20)
RGB_full-8      4.00 ± 0%      1.00 ± 0%  -75.00%  (p=0.000 n=20+20)

Release v0.2.0

09 Jun 17:17
Compare
Choose a tag to compare

Release with import paths adapted for go-pdf/fpdf + cleanups from golangci-lint.