pdf

package
v0.0.0-...-6d0822f Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

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

func NewDocument

func NewDocument(path vpath.Path) (*Document, error)

func (*Document) AddImportPath

func (d *Document) AddImportPath(path vpath.Path)

func (*Document) Render

func (d *Document) Render(out io.Writer) error

func (*Document) SetLogger

func (d *Document) SetLogger(log *log.Logger)

type DocumentComponent

type DocumentComponent struct {
	*std.Item
	// contains filtered or unexported fields
}

func NewDocumentComponent

func NewDocumentComponent(id string, context *vit.FileContext) *DocumentComponent

func (*DocumentComponent) AddChild

func (d *DocumentComponent) AddChild(child vit.Component)

func (*DocumentComponent) AddChildAfter

func (d *DocumentComponent) AddChildAfter(afterThis vit.Component, addThis vit.Component)

func (*DocumentComponent) As

func (d *DocumentComponent) As(target *vit.Component) bool

func (*DocumentComponent) Event

func (d *DocumentComponent) Event(name string) (vit.Listenable, bool)

func (*DocumentComponent) Finish

func (d *DocumentComponent) Finish() error

func (*DocumentComponent) ID

func (d *DocumentComponent) ID() string

func (*DocumentComponent) MustProperty

func (d *DocumentComponent) MustProperty(key string) vit.Value

func (*DocumentComponent) Property

func (d *DocumentComponent) Property(key string) (vit.Value, bool)

func (*DocumentComponent) ResolveVariable

func (d *DocumentComponent) ResolveVariable(key string) (interface{}, bool)

func (*DocumentComponent) SetProperty

func (d *DocumentComponent) SetProperty(key string, value interface{}) error

func (*DocumentComponent) SetPropertyCode

func (d *DocumentComponent) SetPropertyCode(key string, code vit.Code) error

func (*DocumentComponent) String

func (d *DocumentComponent) String() string

func (*DocumentComponent) UpdateExpressions

func (d *DocumentComponent) UpdateExpressions(context vit.Component) (int, vit.ErrorGroup)

type PDFLib

type PDFLib struct{}

func (PDFLib) ComponentNames

func (l PDFLib) ComponentNames() []string

func (PDFLib) NewComponent

func (l PDFLib) NewComponent(name string, id string, globalCtx *vit.GlobalContext) (vit.Component, bool)

func (PDFLib) StaticAttribute

func (l PDFLib) StaticAttribute(componentName string, attributeName string) (interface{}, bool)

type PageComponent

type PageComponent struct {
	*std.Item
	// contains filtered or unexported fields
}

func NewPageComponent

func NewPageComponent(id string, context *vit.FileContext) *PageComponent

func (*PageComponent) AddChild

func (p *PageComponent) AddChild(child vit.Component)

func (*PageComponent) AddChildAfter

func (p *PageComponent) AddChildAfter(afterThis vit.Component, addThis vit.Component)

func (*PageComponent) As

func (p *PageComponent) As(target *vit.Component) bool

func (*PageComponent) Draw

func (p *PageComponent) Draw(ctx vit.DrawingContext, area vit.Rect) error

func (*PageComponent) Event

func (p *PageComponent) Event(name string) (vit.Listenable, bool)

func (*PageComponent) Finish

func (p *PageComponent) Finish() error

func (*PageComponent) ID

func (p *PageComponent) ID() string

func (*PageComponent) MustProperty

func (p *PageComponent) MustProperty(key string) vit.Value

func (*PageComponent) Property

func (p *PageComponent) Property(key string) (vit.Value, bool)

func (*PageComponent) ResolveVariable

func (p *PageComponent) ResolveVariable(key string) (interface{}, bool)

func (*PageComponent) SetProperty

func (p *PageComponent) SetProperty(key string, value interface{}) error

func (*PageComponent) SetPropertyCode

func (p *PageComponent) SetPropertyCode(key string, code vit.Code) error

func (*PageComponent) String

func (p *PageComponent) String() string

func (*PageComponent) UpdateExpressions

func (p *PageComponent) UpdateExpressions(context vit.Component) (int, vit.ErrorGroup)

type PageComponent_Format

type PageComponent_Format uint
const (
	PageComponent_Format_A0  PageComponent_Format = 0
	PageComponent_Format_A1  PageComponent_Format = 1
	PageComponent_Format_A2  PageComponent_Format = 2
	PageComponent_Format_A3  PageComponent_Format = 3
	PageComponent_Format_A4  PageComponent_Format = 4
	PageComponent_Format_A5  PageComponent_Format = 5
	PageComponent_Format_A6  PageComponent_Format = 6
	PageComponent_Format_A7  PageComponent_Format = 7
	PageComponent_Format_A8  PageComponent_Format = 8
	PageComponent_Format_A9  PageComponent_Format = 9
	PageComponent_Format_A10 PageComponent_Format = 10
)

func (PageComponent_Format) String

func (enum PageComponent_Format) String() string

type PageComponent_Orientation

type PageComponent_Orientation uint
const (
	PageComponent_Orientation_Portrait  PageComponent_Orientation = 0
	PageComponent_Orientation_Landscape PageComponent_Orientation = 1
)

func (PageComponent_Orientation) String

func (enum PageComponent_Orientation) String() string

Jump to

Keyboard shortcuts

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