formfill

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Overview

Package formfill provides support for filling forms found in PDF files (aka AcroForm), reading forms input either form an FDF file or directly from memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillForm

func FillForm(doc *model.Document, fdf FDFDict, lockForm bool) error

FillForm fill the AcroForm contained in the document using the value in `fdf`. If `lockForm` is true, all the fields are set ReadOnly (even the ones not filled). See FillFormFromFDF to use a FDF file as value input.

func FillFormFromFDF

func FillFormFromFDF(doc *model.Document, fdf file.FDFFile, lockForm bool) error

FillFormFromFDF is the same as FillForm, but use the given `fdf` FDF file as input for filling the forms in `doc`.

Types

type FDFChoices added in v0.0.4

type FDFChoices []string

FDFChoices is the value of field with type `Ch`

type FDFDict

type FDFDict struct {
	Fields []FDFField
}

FDFDict is the FDF entry of an FDF file catalog.

type FDFField

type FDFField struct {
	Values
	Kids []FDFField
	T    string // partial field name
}

type FDFName added in v0.0.4

type FDFName model.ObjName

FDFName is the value of a field with type `Btn`

type FDFText added in v0.0.4

type FDFText string

FDFText is the value of a field with type `Tx` or `Ch`

type FDFValue

type FDFValue interface {
	// contains filtered or unexported methods
}

type Fl

type Fl = model.Fl

type Values

type Values struct {
	V  FDFValue
	RV string
}

Jump to

Keyboard shortcuts

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