create

package
v0.0.0-...-4e20295 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePage

func CreatePage(
	xRefTable *model.XRefTable,
	parentPageIndRef types.IndirectRef,
	p *model.Page,
	fonts model.FontMap) (*types.IndirectRef, types.Dict, error)

CreatePage generates a page dict for p.

func FromJSON

func FromJSON(ctx *model.Context, rd io.Reader) error

FromJSON generates PDF content into ctx as provided by rd.

func FromStruct

func FromStruct(ctx *model.Context, pdf *primitives.PDF) error

FromStruct generates PDF content into ctx as provided by PDF structure.

func UpdatePage

func UpdatePage(xRefTable *model.XRefTable, dIndRef types.IndirectRef, d, res types.Dict, p *model.Page, fonts model.FontMap) error

UpdatePage updates the existing page dict d with content provided by p.

func UpdatePageTree

func UpdatePageTree(ctx *model.Context, pages []*model.Page, fontMap model.FontMap) (types.Array, model.FontMap, error)

UpdatePageTree merges new pages or updates existing pages into ctx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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