Help us shape the future of Go! Take the 2026 Go Developer Survey

pdf

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMetadata

func ParseMetadata(ctx *model.Context, link *manifest.Link) (m manifest.Manifest, err error)

func ParsePDFMetadata

func ParsePDFMetadata(ctx *model.Context, m *manifest.Manifest) error

func ParseXMPMetadata

func ParseXMPMetadata(doc *xmp.Document, metadata *manifest.Metadata) error

func PositionsServiceFactory

func PositionsServiceFactory() pub.ServiceFactory

Types

type Parser

type Parser struct {
}

func NewParser

func NewParser() Parser

func (Parser) Parse

func (p Parser) Parse(asset asset.PublicationAsset, f fetcher.Fetcher) (*pub.Builder, error)

Parse implements PublicationParser

type PositionsService

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

Positions Service for an PDF.

func (*PositionsService) Close

func (s *PositionsService) Close()

func (*PositionsService) Get

func (s *PositionsService) Links() manifest.LinkList

func (*PositionsService) Positions

func (s *PositionsService) Positions() []manifest.Locator

Positions implements pub.PositionsService

func (*PositionsService) PositionsByReadingOrder

func (s *PositionsService) PositionsByReadingOrder() [][]manifest.Locator

PositionsByReadingOrder implements PositionsService

Jump to

Keyboard shortcuts

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