Skip to content

Releases: SebastiaanKlippert/go-wkhtmltopdf

v1.9.3

02 Jul 13:27
Compare
Choose a tag to compare

What's Changed

  • Do not show console on each invokation by @matwachich in #124
  • Fixes in test PDFs, use loremflickr instead of placekitten

New Contributors

Full Changelog: v1.9.2...v1.9.3

v1.9.2

26 Oct 21:00
Compare
Choose a tag to compare

In case there is a cmd/os error while rendering the PDF to cmd error was not displayed, but only the contents of wkhtmltopdf's stderr buffer were returned.
The error returned by exec.Command is now appended to the contents of stderr in a new line.
This should make it clear what the error was, but the error text might be very long.

v1.9.1

07 Aug 21:12
c04f83e
Compare
Choose a tag to compare

No new features, removes deprecated Go functions

v1.9.0

11 Feb 12:51
Compare
Choose a tag to compare

Margin and page size options can be set with units in wkhtmltopdf.
That was not possible in go-wkhtmltopdf, for the options that support this a "Unit" option has been added.
For example, you can now use pdfg.MarginRightUnit.Set("1mm") to set a margin of 1 millimeter or pdfg.MarginRightUnit.Set("0.5in") for half an inch. pdfg.MarginRight.Set(1) is still available to to set it to 1 mm.
When both options are specified a duplicate agrument error is returned: duplicate argument: --margin-right

v1.8.2

08 Dec 08:24
b6c0b62
Compare
Choose a tag to compare

go modules compatability

v1.8.0

22 Nov 21:02
Compare
Choose a tag to compare

git flow changes

05 Oct 15:22
Compare
Choose a tag to compare

no functional changes

v1.7.1

09 Jun 19:02
Compare
Choose a tag to compare

Add header and footer options for TOC

v1.7.0

22 Apr 10:40
Compare
Choose a tag to compare

Added CreateContext and use exec.CommandContext.
Can be used for cancellation and other things.

v1.6.1

28 Nov 21:09
Compare
Choose a tag to compare

Renamed page interface to PageProvider to make it exported.