scanner

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

A Scanner breaks a content stream into tokens.

Parse errors are ignored as much as possible.

func NewScanner

func NewScanner() *Scanner

NewScanner returns a new scanner that reads from r.

func (*Scanner) Reset

func (s *Scanner) Reset()

func (*Scanner) Scan

func (s *Scanner) Scan(r io.Reader) func(yield func(op string, args []pdf.Object) error) error

Scan return an iterator over all PDF objects in the content stream.

The []pdf.Object slice passed to the yield function is owned by the scanner and is only valid until the yield returns.

Jump to

Keyboard shortcuts

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