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 Document struct + AverageTemplates *bitmap.Bitmaps + BaseIndexes []int + Classer *classer.Classer + CurrentSegmentNumber uint32 + EncodeGlobals bool + FullHeaders bool + GBUseExtTemplate bool + GlobalSegments *Globals + InputStream reader.StreamReader + NumberOfPages uint32 + NumberOfPagesUnknown bool + OrganizationType segments.OrganizationType + Pages map[int]*Page + RefineLevel int + Refinement bool + XRes int + YRes int + func DecodeDocument(input reader.StreamReader, globals *Globals) (*Document, error) + func InitEncodeDocument(fullHeaders bool) *Document + func (d *Document) AddClassifiedPage(bm *bitmap.Bitmap, method classer.Method) (err error) + func (d *Document) AddGenericPage(bm *bitmap.Bitmap, duplicateLineRemoval bool) (err error) + func (d *Document) Encode() (data []byte, err error) + func (d *Document) GetGlobalSegment(i int) (*segments.Header, error) + func (d *Document) GetNumberOfPages() (uint32, error) + func (d *Document) GetPage(pageNumber int) (segments.Pager, error) + type EncodingMethod int + const CorrelationEM + const GenericEM + const RankHausEM + type Globals struct + Segments []*segments.Header + func (g *Globals) AddSegment(segment *segments.Header) + func (g *Globals) GetSegment(segmentNumber int) (*segments.Header, error) + func (g *Globals) GetSegmentByIndex(index int) (*segments.Header, error) + func (g *Globals) GetSymbolDictionary() (*segments.Header, error) + type Page struct + Bitmap *bitmap.Bitmap + Document *Document + EncodingMethod EncodingMethod + FinalHeight int + FinalWidth int + FirstSegmentNumber int + IsLossless bool + PageNumber int + ResolutionX int + ResolutionY int + Segments []*segments.Header + func (p *Page) AddEndOfPageSegment() + func (p *Page) AddGenericRegion(bm *bitmap.Bitmap, xloc, yloc, template int, tp segments.Type, ...) error + func (p *Page) AddPageInformationSegment() + func (p *Page) Encode(w writer.BinaryWriter) (n int, err error) + func (p *Page) GetBitmap() (bm *bitmap.Bitmap, err error) + func (p *Page) GetHeight() (int, error) + func (p *Page) GetResolutionX() (int, error) + func (p *Page) GetResolutionY() (int, error) + func (p *Page) GetSegment(number int) (*segments.Header, error) + func (p *Page) GetWidth() (int, error) + func (p *Page) String() string