def appproperties(self): E = ElementMaker(namespace=namespaces['ep'], nsmap={None: namespaces['ep']}) props = E.Properties( E.Application(__appname__), E.AppVersion('%02d.%04d' % numeric_version[:2]), E.DocSecurity('0'), E.HyperlinksChanged('false'), E.LinksUpToDate('true'), E.ScaleCrop('false'), E.SharedDoc('false'), ) return xml2str(props, pretty_print=True)
def appproperties(self): E = ElementMaker(namespace=self.namespace.namespaces['ep'], nsmap={None:self.namespace.namespaces['ep']}) props = E.Properties( E.Application(__appname__), E.AppVersion('%02d.%04d' % numeric_version[:2]), E.DocSecurity('0'), E.HyperlinksChanged('false'), E.LinksUpToDate('true'), E.ScaleCrop('false'), E.SharedDoc('false'), ) if self.mi.publisher: props.append(E.Company(self.mi.publisher)) return xml2str(props)