Categorygithub.com/meateam/gotenberg-go-client/v6

# Packages

No description provided by the author

# README

Gotenberg Go client

A simple Go client for interacting with a Gotenberg API.

Install

$ go get -u github.com/meateam/gotenberg-go-client/v6

Usage

import "github.com/meateam/gotenberg-go-client/v6"

func main() {
    // HTML conversion example.
    c := &gotenberg.Client{Hostname: "http://localhost:3000"}
    req, _ := gotenberg.NewHTMLRequest("index.html")
    req.Header("header.html")
    req.Footer("footer.html")
    req.Assets(
        "font.woff",
        "img.gif",
        "style.css",
    )
    req.PaperSize(gotenberg.A4)
    req.Margins(gotenberg.NormalMargins)
    req.Landscape(false)
    dest := "foo.pdf"
    c.Store(req, dest)
}

For more complete usages, head to the documentation.

Badges

Travis CI GoDoc Go Report Card