Versions in this module Expand all Collapse all v0 v0.3.0 Oct 30, 2026 Changes in this version + const ExtractorVersion + const MethodAuthorYear + const MethodNumeric + const SectionReferences + var ErrUnreadable = errors.New("unreadable PDF") + func Clean(page string) string + func Mentions(pages []string, title, surname string) bool + func Resembles(pages []string, title, surname string) bool + type Chunk struct + End int + Ordinal int + Page int + Section string + Start int + Text string + func Chunks(pages []string) []Chunk + type Clue struct + ID identity.ID + Where string + func Clues(fileName string, f Front) []Clue + type Extractor interface + Extract func(ctx context.Context, pdf []byte) ([]string, error) + type Front struct + Meta map[string]string + Pages []string + Title string + type FrontReader interface + Front func(ctx context.Context, pdf []byte) (Front, error) + type Mention struct + Confidence float64 + End int + Marker string + Method string + Page int + Ref string + Section string + Sentence string + Start int + func Contexts(pages []string, refs []Ref) []Mention + type PDFium struct + func Shared() *PDFium + func (p *PDFium) Extract(ctx context.Context, pdf []byte) ([]string, error) + func (p *PDFium) Front(ctx context.Context, pdf []byte) (Front, error) + func (p *PDFium) UseCache(dir string) + type Ref struct + Authors int + DOI string + ID string + Surname string + Title string + Year int + type Result struct + Chars int + Chunks []Chunk + Pages int + Text []string + func Read(ctx context.Context, ex Extractor, pdf []byte) (Result, error) + type Status string + const StatusGibberish + const StatusNoText + const StatusOK + const StatusTimedOut + const StatusUnreadable + type Verdict struct + Reason string + Status Status + func Judge(pages []string) Verdict v0.2.0 Sep 25, 2026 v0.1.0 Sep 25, 2026