InDesign IDML Files

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

Bases: bl.zip.ZIP, bkgen.source.Source

NS = {‘idPkg’: ‘http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging’}
POINTS_PER_EM = 12
articles_documents(path=None, designmap=None)[source]

return a collection of pub:documents built from the InDesign Articles in the .idml file.

basename
design_map
documents(path=None, articles=True, **params)[source]

return a collection of pub:documents from the stories in the .idml file. If the .idml file has Articles, use those as guidance; otherwise, use the stories directly.

items_dict()[source]

returns a dict of items (anything with a Self) in the IDML file. Needed to resolve Article components.

output_path
stylesheet(fn=None, points_per_em=12)[source]

return a stylesheet from the .idml file’s style definitions