pdf

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pdf renders a report as an A4 PDF (spec 12): a summary page with key figures, energy charts and where the energy came from and went, the sections the site has (battery, PV sources, loadpoints, load profile), patterns, comparison and data quality, a compact table and a last page on how the report is calculated. German or English. Charts are vectors in a print palette independent of the UI theme and readable in greyscale. Pure Go (works in the scratch image); fonts are embedded (Inter, SIL Open Font License, see fonts/OFL.txt).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, r report.Report, m Meta) error

Write renders r to w.

Types

type Meta

type Meta struct {
	// Site is the site name; Version the app version.
	Site, Version string
	// Generated is the creation time in the server time zone.
	Generated time.Time
	// Lang is "de" or "en" (anything else is English).
	Lang string
}

Meta is the information that does not come from the report.

Jump to

Keyboard shortcuts

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