labelmaker

package
v0.0.0-...-6c79106 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package labelmaker provides functionality for generating and printing labels for items, locations and assets stored in Homebox

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLabel

func GenerateLabel(w io.Writer, params *GenerateParameters) error

func PrintLabel

func PrintLabel(cfg *config.Config, params *GenerateParameters) error

Types

type GenerateParameters

type GenerateParameters struct {
	Width                 int
	Height                int
	QrSize                int
	Margin                int
	ComponentPadding      int
	TitleText             string
	TitleFontSize         float64
	DescriptionText       string
	DescriptionFontSize   float64
	AdditionalInformation *string
	Dpi                   float64
	URL                   string
	DynamicLength         bool
}

func NewGenerateParams

func NewGenerateParams(width int, height int, margin int, padding int, fontSize float64, title string, description string, url string, dynamicLength bool, additionalInformation *string) GenerateParameters

func (*GenerateParameters) Validate

func (p *GenerateParameters) Validate() error

Jump to

Keyboard shortcuts

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