Word DOCX Files

class bkgen.docx.DOCX(fn=None, mode=’r’, compression=8, **args)[source]

Bases: bxml.docx.DOCX, bkgen.source.Source

A Word document can be a source that is brought in, and an output format

document(fn=None, **params)[source]

returns an XML document containing the content of the Word document

documents(**params)[source]

return a list of documents containing the content of the document

images()[source]

all the images referred to in the DOCX.

metadata()[source]

return a Metadata object with the metadata in the document

numbering_params(numId, level)[source]

return numbering parameters for the given w:numId an w:lvl / w:ilvl

stylesheet()[source]