sticker

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sticker handles PDF sticker generation for NFC card mappings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator creates PDF stickers from card mappings.

func NewGenerator

func NewGenerator(devMode bool) *Generator

NewGenerator creates a new sticker generator.

func (*Generator) GeneratePDF

func (g *Generator) GeneratePDF(mappings []*models.CardMapping, _ string) ([]byte, error)

GeneratePDF generates a PDF with stickers for the given mappings. Portrait and square cards are rendered on separate pages. Returns PDF bytes or error.

Jump to

Keyboard shortcuts

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