Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + type Extractor struct + func New(page *model.PdfPage) (*Extractor, error) + func (e *Extractor) ExtractPageImages(options *ImageExtractOptions) (*PageImages, error) + func (e *Extractor) ExtractPageText() (*PageText, int, int, error) + func (e *Extractor) ExtractText() (string, error) + func (e *Extractor) ExtractTextWithStats() (extracted string, numChars int, numMisses int, err error) + type ImageExtractOptions struct + IncludeInlineStencilMasks bool + type ImageMark struct + Angle float64 + Height float64 + Image *model.Image + Width float64 + X float64 + Y float64 + type PageImages struct + Images []ImageMark + type PageText struct + func (pt PageText) Marks() *TextMarkArray + func (pt PageText) String() string + func (pt PageText) Text() string + func (pt PageText) ToText() string + type RenderMode int + const RenderModeClip + const RenderModeFill + const RenderModeStroke + type TextMark struct + BBox model.PdfRectangle + Font *model.PdfFont + FontSize float64 + Meta bool + Offset int + Original string + Text string + func (tm TextMark) String() string + type TextMarkArray struct + func (ma *TextMarkArray) Append(mark TextMark) + func (ma *TextMarkArray) BBox() (model.PdfRectangle, bool) + func (ma *TextMarkArray) Elements() []TextMark + func (ma *TextMarkArray) Len() int + func (ma *TextMarkArray) RangeOffset(start, end int) (*TextMarkArray, error) + func (ma TextMarkArray) String() string