pdf

package
v0.0.0-...-e815181 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TITLE_SEP = "  /  "

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardTitle

type BoardTitle struct {
	Name    string
	BoardID string
}

type GoFPDF

type GoFPDF struct {
	// contains filtered or unexported fields
}

func Init

func Init() *GoFPDF

func (*GoFPDF) AddPDFPage

func (g *GoFPDF) AddPDFPage(png []byte, titlePath []BoardTitle, themeID int64, fill string, shapes []d2target.Shape, pad int64, viewboxX, viewboxY float64, pageMap map[string]int) error

func (*GoFPDF) Export

func (g *GoFPDF) Export(outputPath string) error

func (*GoFPDF) GetFillRGB

func (g *GoFPDF) GetFillRGB(themeID int64, fill string) (color.RGB, error)

Jump to

Keyboard shortcuts

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