fromXmlElement static method
Implementation
static HeaderFooter fromXmlElement(XmlElement headerFooterElement) {
return HeaderFooter(
alignWithMargins:
headerFooterElement.getAttribute("alignWithMargins")?.parseBool(),
differentFirst:
headerFooterElement.getAttribute("differentFirst")?.parseBool(),
differentOddEven:
headerFooterElement.getAttribute("differentOddEven")?.parseBool(),
scaleWithDoc:
headerFooterElement.getAttribute("scaleWithDoc")?.parseBool(),
evenFooter: headerFooterElement.getElement("evenFooter")?.innerXml,
evenHeader: headerFooterElement.getElement("evenHeader")?.innerXml,
firstFooter: headerFooterElement.getElement("firstFooter")?.innerXml,
firstHeader: headerFooterElement.getElement("firstHeader")?.innerXml,
oddFooter: headerFooterElement.getElement("oddFooter")?.innerXml,
oddHeader: headerFooterElement.getElement("oddHeader")?.innerXml);
}