parser

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser provides functions to extract objects from a pdf file

func New

func New(bts []byte) (*Parser, error)

New creates a new Parser object

func (*Parser) File

func (q *Parser) File() *pdffile.File

File returns the parsed File object

func (*Parser) GetAllPages

func (q *Parser) GetAllPages() ([]types.Page, error)

GetAllPages returns all pages from the PageTree

func (*Parser) GetPage

func (q *Parser) GetPage(pageNo int) (types.Page, error)

GetPage returns one page from the PageTree (first page = pageNo 1)

func (*Parser) Info added in v1.0.16

func (q *Parser) Info() (types.InformationDictionary, error)

Info returns the InformationDictionary of the parsed file

Jump to

Keyboard shortcuts

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