fjson

package
v0.0.0-...-73e6ce1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 5 Imported by: 0

Documentation

Overview

Package fjson provides support for loading PDF form field data from JSON data/files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldData

type FieldData struct {
	// contains filtered or unexported fields
}

FieldData represents form field data loaded from JSON file.

func LoadFromJSON

func LoadFromJSON(r io.Reader) (*FieldData, error)

LoadFromJSON loads JSON form data from `r`.

func LoadFromJSONFile

func LoadFromJSONFile(filePath string) (*FieldData, error)

LoadFromJSONFile loads form field data from a JSON file.

func LoadFromPDF

func LoadFromPDF(rs io.ReadSeeker) (*FieldData, error)

LoadFromPDF loads form field data from a PDF.

func LoadFromPDFFile

func LoadFromPDFFile(filePath string) (*FieldData, error)

LoadFromPDFFile loads form field data from a PDF file.

func (*FieldData) FieldValues

func (fd *FieldData) FieldValues() (map[string]core.PdfObject, error)

FieldValues implements model.FieldValueProvider interface.

func (FieldData) JSON

func (fd FieldData) JSON() (string, error)

JSON returns the field data as a string in JSON format.

Jump to

Keyboard shortcuts

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