Documentation
¶
Index ¶
- type Document
- func (_ge *Document) AddClassifiedPage(bm *_fa.Bitmap, method _de.Method) (_ba error)
- func (_eg *Document) AddGenericPage(bm *_fa.Bitmap, duplicateLineRemoval bool) (_ae error)
- func (_ded *Document) Encode() (_dcd []byte, _ca error)
- func (_dega *Document) GetGlobalSegment(i int) (*_ce.Header, error)
- func (_gbbe *Document) GetNumberOfPages() (uint32, error)
- func (_bge *Document) GetPage(pageNumber int) (_ce.Pager, error)
- type EncodingMethod
- type Globals
- type Page
- func (_cff *Page) AddEndOfPageSegment()
- func (_fcda *Page) AddGenericRegion(bm *_fa.Bitmap, xloc, yloc, template int, tp _ce.Type, ...) error
- func (_efg *Page) AddPageInformationSegment()
- func (_ddeg *Page) Encode(w _bb.BinaryWriter) (_dgc int, _afd error)
- func (_ebe *Page) GetBitmap() (_eceb *_fa.Bitmap, _cge error)
- func (_bea *Page) GetHeight() (int, error)
- func (_ffc *Page) GetResolutionX() (int, error)
- func (_afg *Page) GetResolutionY() (int, error)
- func (_eef *Page) GetSegment(number int) (*_ce.Header, error)
- func (_bab *Page) GetWidth() (int, error)
- func (_dbb *Page) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
Pages map[int]*Page
NumberOfPagesUnknown bool
NumberOfPages uint32
GBUseExtTemplate bool
InputStream *_bb.Reader
GlobalSegments *Globals
OrganizationType _ce.OrganizationType
Classer *_de.Classer
XRes, YRes int
FullHeaders bool
CurrentSegmentNumber uint32
AverageTemplates *_fa.Bitmaps
BaseIndexes []int
Refinement bool
RefineLevel int
EncodeGlobals bool
// contains filtered or unexported fields
}
func InitEncodeDocument ¶
func (*Document) AddClassifiedPage ¶
func (*Document) AddGenericPage ¶
func (*Document) GetGlobalSegment ¶
func (*Document) GetNumberOfPages ¶
type EncodingMethod ¶
type EncodingMethod int
const ( GenericEM EncodingMethod = iota CorrelationEM RankHausEM )
type Page ¶
type Page struct {
Segments []*_ce.Header
PageNumber int
Bitmap *_fa.Bitmap
FinalHeight int
FinalWidth int
ResolutionX int
ResolutionY int
IsLossless bool
Document *Document
FirstSegmentNumber int
EncodingMethod EncodingMethod
BlackIsOne bool
}
func (*Page) AddEndOfPageSegment ¶
func (_cff *Page) AddEndOfPageSegment()
func (*Page) AddGenericRegion ¶
func (*Page) AddPageInformationSegment ¶
func (_efg *Page) AddPageInformationSegment()
func (*Page) GetResolutionX ¶
func (*Page) GetResolutionY ¶
Click to show internal directories.
Click to hide internal directories.