func DecodeBytes(encoded []byte, parameters decoder.Parameters, globals ...Globals) ([]byte, error)
DecodeBytes decodes jbig2 'encode' byte slice data, with provided 'parameters' and optional 'globals'. The function decodes only a single page from the given input.
Globals is the v3 mapping of the jbig2 segments to header mapping.
type Globals map[int]*segments.Header
func DecodeGlobals(encoded []byte) (Globals, error)
DecodeGlobals decodes globally defined data segments from the provided 'encoded' byte slice.
func (g Globals) ToDocumentGlobals() *document.Globals
ToDocumentGlobals converts 'jbig2.Globals' into '*document.Globals'
Name | Synopsis |
---|---|
.. |