pdf

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client()

func Document

func Document(file *PDFFile) (documet gotenberg.Document, err error)

func Request

func Request(file *PDF) (gotenberg.Request, error)

func Save

func Save(file *PDF, dest string) error

func To

func To(file *PDF) (*http.Response, error)

Types

type Oper

type Oper int
const (
	OFFICE Oper = iota
	MARKDOWN
	HTML
	URL
	MERGE
)

type PDF

type PDF struct {
	Files     []*PDFFile
	Oper      Oper
	Ranges    string
	Landscape bool
	Scale     float64
	Margins   [4]float64
	Delay     float64
	Timeout   float64
	FileName  string
}

type PDFFile

type PDFFile struct {
	Url      string
	Body     string
	Data     *[]byte
	Tag      string
	FileName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL