create

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePage added in v0.4.0

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 UpdatePage added in v0.4.0

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 added in v0.4.0

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