pdf

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateReadme

func GenerateReadme(data ReadmeData) ([]byte, error)

GenerateReadme creates the README.pdf content.

Types

type ReadmeData

type ReadmeData struct {
	ProjectName      string
	Holder           string
	Share            *core.Share
	OtherFriends     []project.Friend
	Threshold        int
	Total            int
	Version          string
	GitHubReleaseURL string
	ManifestChecksum string
	RecoverChecksum  string
	Created          time.Time
	Anonymous        bool
	RecoveryURL      string // Base URL for QR code (e.g. "https://example.com/recover.html")
	Language         string // Bundle language (e.g. "en", "es"); defaults to "en"
	ManifestEmbedded bool   // true when manifest is embedded in recover.html
	TlockEnabled     bool   // true when manifest uses time-lock encryption
}

ReadmeData contains all data needed to generate README.pdf

func (ReadmeData) QRContent added in v0.0.8

func (d ReadmeData) QRContent() string

QRContent returns the string that will be encoded in the QR code. Returns "URL#share=COMPACT". If RecoveryURL is not set, defaults to the production URL.

Jump to

Keyboard shortcuts

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