resources

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface{ Done() <-chan struct{} }

type PageScope

type PageScope struct {
	Page   *semantic.Page
	Parent Scope
}

func (*PageScope) LocalResources

func (ps *PageScope) LocalResources() *semantic.Resources

func (*PageScope) ParentScope

func (ps *PageScope) ParentScope() Scope

type Resolver

type Resolver interface {
	ResolveWithInheritance(ctx Context, category ResourceCategory, name string, page *semantic.Page) (raw.Object, error)
}

func NewResolver

func NewResolver() Resolver

type ResourceCategory

type ResourceCategory string
const (
	CategoryFont    ResourceCategory = "Font"
	CategoryXObject ResourceCategory = "XObject"
)

type Scope

type Scope interface {
	LocalResources() *semantic.Resources
	ParentScope() Scope
}

Jump to

Keyboard shortcuts

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