form

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package form implements PDF form XObjects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Raw added in v0.4.2

func Raw(w pdf.Putter, f *FormProperties, contents []byte, resources *pdf.Resources) (*graphics.XObject, error)

Types

type FormBuilder added in v0.4.2

type FormBuilder struct {
	Out pdf.Putter
	*graphics.Writer
	*FormProperties
}

func New added in v0.4.2

func New(w pdf.Putter, prop *FormProperties) *FormBuilder

func (*FormBuilder) Finish added in v0.4.2

func (f *FormBuilder) Finish() (*graphics.XObject, error)

type FormProperties added in v0.4.2

type FormProperties struct {
	BBox         *pdf.Rectangle
	Matrix       matrix.Matrix
	Metadata     pdf.Reference
	PieceInfo    pdf.Object
	LastModified time.Time
	// TODO(voss): StructParent, StructParents
	OC          pdf.Object
	DefaultName pdf.Name
	AF          pdf.Object
	Measure     pdf.Object
	PtData      pdf.Object
}

FormProperties has data for a form XObject.

See section 8.10 of ISO 32000-2:2020 for details.

Jump to

Keyboard shortcuts

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