pdf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPDFPageMap added in v0.2.4

func BuildPDFPageMap(diagram *d2target.Diagram, dictionary map[string]int, path []string) map[string]int

BuildPDFPageMap returns a map from board path to page int To map correctly, it must follow the same traversal of PDF building

Types

type GoFPDF

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

func Init

func Init() *GoFPDF

func (*GoFPDF) AddPDFPage

func (g *GoFPDF) AddPDFPage(png []byte, boardPath []string, 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