go-wkhtmltopdf

Golang commandline wrapper for wkhtmltopdf

MIT License

Stars
1K
Committers
11

Bot releases are hidden (Show)

go-wkhtmltopdf - v1.9.3

Published by SebastiaanKlippert 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/SebastiaanKlippert/go-wkhtmltopdf/compare/v1.9.2...v1.9.3

go-wkhtmltopdf - v1.9.2 Latest Release

Published by SebastiaanKlippert 12 months ago

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.

go-wkhtmltopdf - v1.9.1

Published by SebastiaanKlippert about 1 year ago

No new features, removes deprecated Go functions

go-wkhtmltopdf - v1.9.0

Published by SebastiaanKlippert over 1 year ago

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

go-wkhtmltopdf - v1.8.2

Published by SebastiaanKlippert almost 2 years ago

go modules compatability

go-wkhtmltopdf - v1.8.0

Published by SebastiaanKlippert almost 2 years ago

go-wkhtmltopdf - git flow changes

Published by SebastiaanKlippert about 3 years ago

no functional changes

go-wkhtmltopdf - v1.7.1

Published by SebastiaanKlippert over 3 years ago

Add header and footer options for TOC

go-wkhtmltopdf - v1.7.0

Published by SebastiaanKlippert over 3 years ago

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

go-wkhtmltopdf -

Published by SebastiaanKlippert almost 4 years ago

Renamed page interface to PageProvider to make it exported.

go-wkhtmltopdf - v1.6.0

Published by SebastiaanKlippert about 4 years ago

  • Added new fields introduced in wkhtmltopdf release 0.12.6.
    Most importantly page option --enable-local-file-access which is now required to enable access to local files when to --allow option is not used.

  • Fixed a couple of incorrect options.

  • Breaking change: Global option Lowquality is now LowQuality. The compiler will fail if you use this options so no big issue for most users. For JSON users it will not break because the JSON parser will parse the field with both casing options.

go-wkhtmltopdf - v1.5.0

Published by SebastiaanKlippert about 5 years ago

Add SetStderr method

go-wkhtmltopdf - v1.4.1

Published by SebastiaanKlippert over 5 years ago

Add ResetPages method

go-wkhtmltopdf - v1.4.0

Published by SebastiaanKlippert almost 6 years ago

Added new page options:

  • bypass-proxy-for
  • keep-relative-links
  • ssl-crt-path
  • ssl-key-password
  • ssl-key-path
go-wkhtmltopdf - v1.3.0

Published by SebastiaanKlippert almost 6 years ago

Added SetOutput method that will accept an io.Writer to write the generated PDF to.

go-wkhtmltopdf -

Published by SebastiaanKlippert over 6 years ago

go-wkhtmltopdf -

Published by SebastiaanKlippert over 6 years ago

go-wkhtmltopdf -

Published by SebastiaanKlippert over 6 years ago

go-wkhtmltopdf -

Published by SebastiaanKlippert almost 7 years ago

go-wkhtmltopdf - v1.0.0

Published by SebastiaanKlippert about 7 years ago

Package Rankings
Top 1.3% on Proxy.golang.org
Badges
Extracted from project README
PkgGoDev Go Report Card codebeat badge codecov Build Status Build Status