page

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package page implements creation of pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ps ...props.PageNumber) core.Page

New is responsible to create a core.Page.

Types

type Page

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

func (*Page) Add

func (p *Page) Add(rows ...core.Row) core.Page

Add adds one or more rows to the Page.

func (*Page) GetNumber

func (p *Page) GetNumber() int

GetNumber returns the Page number.

func (*Page) GetRows

func (p *Page) GetRows() []core.Row

GetRows returns the rows of the Page.

func (*Page) GetStructure

func (p *Page) GetStructure() *node.Node[core.Structure]

GetStructure returns the Structure of a Page.

func (*Page) Render

func (p *Page) Render(provider core.Provider, cell entity.Cell)

Render renders a Page into a PDF context.

func (*Page) SetConfig

func (p *Page) SetConfig(config *entity.Config)

SetConfig sets the Page configuration.

func (*Page) SetNumber

func (p *Page) SetNumber(number int, total int)

SetNumber sets the Page number and total.

Jump to

Keyboard shortcuts

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