Documentation
¶
Index ¶
- func NewStreamAware(s scanner.Scanner) *streamAware
- func ParseHintStream(data []byte, dict *raw.DictObj, npages int) (*raw.HintTable, error)
- type Cache
- type Config
- type DocumentParser
- type ObjectLoader
- type ObjectLoaderBuilder
- func (b *ObjectLoaderBuilder) Build() (ObjectLoader, error)
- func (b *ObjectLoaderBuilder) WithCache(c Cache) *ObjectLoaderBuilder
- func (b *ObjectLoaderBuilder) WithLimits(l security.Limits) *ObjectLoaderBuilder
- func (b *ObjectLoaderBuilder) WithReader(r io.ReaderAt) *ObjectLoaderBuilder
- func (b *ObjectLoaderBuilder) WithSecurity(h security.Handler) *ObjectLoaderBuilder
- func (b *ObjectLoaderBuilder) WithXRef(table xref.Table) *ObjectLoaderBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamAware ¶
func ParseHintStream ¶
ParseHintStream parses the hint stream data. The dict is the dictionary of the hint stream object (containing S, T, O, etc.). npages is the number of pages in the document (from Linearization dict).
Types ¶
type Config ¶
type Config struct {
Recovery recovery.Strategy
XRef xref.ResolverConfig
MaxIndirect int
Security security.Handler
Limits security.Limits
Cache Cache
Password string
}
Config controls high-level PDF parsing (xref resolution + object loading).
type DocumentParser ¶
type DocumentParser struct {
// contains filtered or unexported fields
}
DocumentParser builds a raw.Document using xref tables/streams and the object loader.
func NewDocumentParser ¶
func NewDocumentParser(cfg Config) *DocumentParser
func (*DocumentParser) SetPassword ¶
func (p *DocumentParser) SetPassword(pwd string)
SetPassword updates the password for decryption when parsing encrypted PDFs.
type ObjectLoader ¶
type ObjectLoaderBuilder ¶
type ObjectLoaderBuilder struct {
// contains filtered or unexported fields
}
func (*ObjectLoaderBuilder) Build ¶
func (b *ObjectLoaderBuilder) Build() (ObjectLoader, error)
func (*ObjectLoaderBuilder) WithCache ¶
func (b *ObjectLoaderBuilder) WithCache(c Cache) *ObjectLoaderBuilder
func (*ObjectLoaderBuilder) WithLimits ¶
func (b *ObjectLoaderBuilder) WithLimits(l security.Limits) *ObjectLoaderBuilder
func (*ObjectLoaderBuilder) WithReader ¶
func (b *ObjectLoaderBuilder) WithReader(r io.ReaderAt) *ObjectLoaderBuilder
func (*ObjectLoaderBuilder) WithSecurity ¶
func (b *ObjectLoaderBuilder) WithSecurity(h security.Handler) *ObjectLoaderBuilder
func (*ObjectLoaderBuilder) WithXRef ¶
func (b *ObjectLoaderBuilder) WithXRef(table xref.Table) *ObjectLoaderBuilder
Click to show internal directories.
Click to hide internal directories.