Package vita :: Package modules :: Package s3 :: Module s3ocr :: Class FormHandler
[hide private]
[frames] | no frames]

Class FormHandler

source code

xml.sax.handler.ContentHandler --+
                                 |
                                FormHandler

Instance Methods [hide private]
 
__init__(self, form, uid, lang="eng")
Form initialization and preparation
source code
 
xmlcreate(self)
Creates the xml
source code
 
xmlsave(self)
Save the xml
source code
 
startElement(self, name, attrs)
Parses the starting element and then check what to read
source code
 
characters(self, ch)
Deal with the data
source code
 
endElement(self, name)
It specifies the operations to do on closing the element
source code
 
get_files(self)
Returns pdf text and layout xml text as dict
source code

Inherited from xml.sax.handler.ContentHandler: endDocument, endElementNS, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElementNS, startPrefixMapping

Method Details [hide private]

__init__(self, form, uid, lang="eng")
(Constructor)

source code 

Form initialization and preparation

Overrides: xml.sax.handler.ContentHandler.__init__

xmlcreate(self)

source code 

Creates the xml

xmlsave(self)

source code 

Save the xml

startElement(self, name, attrs)

source code 

Parses the starting element and then check what to read

Overrides: xml.sax.handler.ContentHandler.startElement

characters(self, ch)

source code 

Deal with the data

Overrides: xml.sax.handler.ContentHandler.characters

endElement(self, name)

source code 

It specifies the operations to do on closing the element

Overrides: xml.sax.handler.ContentHandler.endElement

get_files(self)

source code 

Returns pdf text and layout xml text as dict