pdf

package
v0.0.0-...-ec6453d Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package pdf implements a layla renderer for PDF using the jung-kurt/gofpdf package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBarcoder

func DefaultBarcoder(n *layla.Node) (image.Image, error)

Types

type Doc

type Doc = gofpdf.Fpdf

func NewA4

func NewA4() *Doc

func NewDoc

func NewDoc(n *layla.Node) *Doc

func Render

func Render(m *font.Manager, n *layla.Node) (*Doc, error)

type Renderer

type Renderer struct {
	*font.Manager
	Barcoder func(*layla.Node) (image.Image, error)
}

func (Renderer) RenderSubjTo

func (r Renderer) RenderSubjTo(d *Doc, n *layla.Node, subj string) (*Doc, error)

func (Renderer) RenderTo

func (r Renderer) RenderTo(d *Doc, n *layla.Node) (*Doc, error)

Jump to

Keyboard shortcuts

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