renderer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentResult

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

DocumentResult wraps the completed PDF document and provides the Save method.

func (*DocumentResult) Save

func (dr *DocumentResult) Save(path string) error

Save writes the rendered PDF file to the specified disk path.

type GeneratedDocument

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

GeneratedDocument is the custom wrapper returned to keep public API identical.

func Generate

func Generate(report *structure.Report, styleSheet *style.StyleSheet) (*GeneratedDocument, error)

Generate builds the complete document layout using a custom canvas-based engine.

func (*GeneratedDocument) Generate

func (gd *GeneratedDocument) Generate() (*DocumentResult, error)

Generate implements the document production step, returning the saveable result.

Jump to

Keyboard shortcuts

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