This example shows how to use the MiscHandler interface to print the conent type of the document created by Sablotron:
sp = Sablot.CreateProcessor()
class TestMiscHandler:
def documentInfo(self, ctype, enc):
print 'ContentType=%s, Encoding=%s' % (ctype, enc)
sp.regHandler(Sablot.HLR_MISC, TestMiscHandler())
sp.run('arg:sheet', url, 'arg:output', [], [('sheet', sheet)])