pdf

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LabelPosition = struct {
	TOP,
	BOTTOM,
	LEFT,
	RIGHT Position
}{
	TOP:    "T",
	BOTTOM: "B",
	LEFT:   "L",
	RIGHT:  "R",
}

Functions

func CreatePdf

func CreatePdf(
	layout PageLayout, recoveryLevel qrcode.RecoveryLevel, minQrSizePercentage float64, isBorder bool, fileName string,
	labels []Label,
) (*os.File, error)

Types

type Cell

type Cell struct {
	Width,
	Height float64
}

type Label

type Label struct {
	Content,
	Label string
}

type PageLayout

type PageLayout struct {
	Cell Cell
	Rows,
	Cols int
	Unit,
	SizeStr string
	Size          fpdf.SizeType
	LabelPosition Position
	FontSize      float64
}

type Position

type Position string

Jump to

Keyboard shortcuts

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