pdf

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePdf

func CreatePdf(outputPath string)

func GetText

func GetText(path string) (string, error)

GetText

func InitLicense

func InitLicense()

InitLicense use community license

Types

type Invoice

type Invoice struct {
	OutputPath  string      `json:"outputname"`
	LogoPath    string      `json:"logopath"`
	FontDir     string      `json:"fontdir"`
	FontPackage string      `json:"fontpackage"`
	FontBold    string      `json:"fontbold"`
	FontRegular string      `json:"fontregular"`
	InvoiceName string      `json:"invoicename"`
	Paragraphs  []Paragraph `json:"paragraphs"`
}

Invoice ...

func (*Invoice) Start

func (p *Invoice) Start() error

Start ...

type InvoiceConfig

type InvoiceConfig interface {
	Start() error
}

InvoiceConfig ...

type Paragraph

type Paragraph struct {
	Text     string    `json:"text"`
	Font     string    `json:"font"`
	FontSize float64   `json:"fontsize"`
	Margins  []float64 `json:"margins"`
	Color    []byte    `json:"color"`
}

type Paragraphs

type Paragraphs []Paragraph

Jump to

Keyboard shortcuts

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