pdf

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pdf a parser for PDF

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Parser)

func WithPassword

func WithPassword(password string) Option

type Parser

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

Parser is a parser which parse PDF content to text

func NewPDFParser

func NewPDFParser(opts ...Option) *Parser

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, reader document.ParserReader, writer io.Writer) error

Parse try to parse a pdf content from a bytes.Reader and write to an io.Writer

Jump to

Keyboard shortcuts

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