Versions in this module Expand all Collapse all v0 v0.0.1 Nov 21, 2025 Changes in this version + type AnnotationInfo struct + Color []float64 + Contents string + Flags int + Page int + Rect [4]float64 + Subtype string + URI string + type Bookmark struct + Children []Bookmark + Page int + Title string + type EmbeddedFile struct + Data []byte + Description string + Name string + Relationship string + Subtype string + type Extractor struct + func New(dec *decoded.DecodedDocument) (*Extractor, error) + func (e *Extractor) ExtractAcroForm() (*semantic.AcroForm, error) + func (e *Extractor) ExtractAnnotations() ([]AnnotationInfo, error) + func (e *Extractor) ExtractBookmarks() []Bookmark + func (e *Extractor) ExtractEmbeddedFiles() []EmbeddedFile + func (e *Extractor) ExtractFonts() []FontInfo + func (e *Extractor) ExtractImages() ([]ImageAsset, error) + func (e *Extractor) ExtractMetadata() Metadata + func (e *Extractor) ExtractTableOfContents() []TOCEntry + func (e *Extractor) ExtractText() ([]PageText, error) + func (e *Extractor) PageLabels() map[int]string + type FontInfo struct + BaseFont string + Encoding string + HasToUnicode bool + Pages []int + ResourceName string + Subtype string + type ImageAsset struct + BitsPerComponent int + ColorSpace string + Data []byte + Filters []string + Height int + Page int + ResourceName string + Width int + func (i ImageAsset) ToImage() (image.Image, error) + func (i ImageAsset) ToPNG() ([]byte, error) + type Metadata struct + Encrypted bool + Info raw.DocumentMetadata + Lang string + Marked bool + MetadataEncrypted bool + PageCount int + Permissions raw.Permissions + Version string + XMP []byte + type PageText struct + Content string + Label string + Page int + type TOCEntry struct + Depth int + Label string + Page int + Title string