pdf

package
v0.0.0-...-c7ff7ed Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Collection      string
	Type            reflect.Type
	ValueMap        filters.ValueTypeMap
	FilterValidator filters.Validator
}

type ModelCursor

type ModelCursor struct {
	Cursor    database.Cursor
	ModelName string
	Type      reflect.Type
}

type Models

type Models map[string]Model

type Options

type Options struct {
	Protection *Protection
	FileStores *types.FileStores
	Database   database.Database
}

type PDF

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

func (*PDF) AddModel

func (pdf *PDF) AddModel(modelName, collectionName string, modelType reflect.Type, valueMap filters.ValueTypeMap, filterValidator filters.Validator) error

func (*PDF) Generate

func (pdf *PDF) Generate(template *templates.Template) (<-chan Result, error)

type PDFer

type PDFer interface {
	AddModel(modelName, collectionName string, modelType reflect.Type, valueMap filters.ValueTypeMap, filterValidator filters.Validator) error
	Generate(template *templates.Template) (<-chan Result, error)
}

func New

func New(options *Options) PDFer

type Permissions

type Permissions int
const (
	PermissionPrint      Permissions = gopdf.PermissionsPrint
	PermissionModify     Permissions = gopdf.PermissionsModify
	PermissionCopy       Permissions = gopdf.PermissionsCopy
	PermissionAnnotForms Permissions = gopdf.PermissionsAnnotForms
)

type Protection

type Protection struct {
	Permissions int
	OwnerPass   string
	UserPass    string
}

type Result

type Result struct {
	Name  string
	Body  []byte
	Error error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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