page

package
v0.0.0-...-40a6ac2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Page package implements creation of pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ps ...properties.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