abstract-document 17.0.7 → 17.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/abstract-document/styles/page-style.d.ts +9 -0
- package/lib/abstract-document/styles/page-style.d.ts.map +1 -1
- package/lib/abstract-document/styles/page-style.js +5 -1
- package/lib/abstract-document/styles/page-style.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/measure.d.ts.map +1 -1
- package/lib/abstract-document-exporters/pdf/measure.js +15 -3
- package/lib/abstract-document-exporters/pdf/measure.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/paginate.d.ts +4 -1
- package/lib/abstract-document-exporters/pdf/paginate.d.ts.map +1 -1
- package/lib/abstract-document-exporters/pdf/paginate.js +43 -23
- package/lib/abstract-document-exporters/pdf/paginate.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/pre-process.js +1 -1
- package/lib/abstract-document-exporters/pdf/pre-process.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/render.js +11 -7
- package/lib/abstract-document-exporters/pdf/render.js.map +1 -1
- package/lib/abstract-document-exporters/pdf/update-refs.js +2 -2
- package/lib/abstract-document-exporters/pdf/update-refs.js.map +1 -1
- package/lib/abstract-document-xml/xsd-template/styles.d.ts +2 -1
- package/lib/abstract-document-xml/xsd-template/styles.d.ts.map +1 -1
- package/lib/abstract-document-xml/xsd-template/styles.js +5 -0
- package/lib/abstract-document-xml/xsd-template/styles.js.map +1 -1
- package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts +2 -2
- package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts.map +1 -1
- package/lib/abstract-document-xml/xsd-template/xsd-template.js +1 -0
- package/lib/abstract-document-xml/xsd-template/xsd-template.js.map +1 -1
- package/package.json +3 -3
- package/src/abstract-document/styles/page-style.ts +16 -0
- package/src/abstract-document-exporters/pdf/measure.ts +24 -12
- package/src/abstract-document-exporters/pdf/paginate.ts +67 -32
- package/src/abstract-document-exporters/pdf/pre-process.ts +1 -1
- package/src/abstract-document-exporters/pdf/render.ts +40 -45
- package/src/abstract-document-exporters/pdf/update-refs.ts +2 -2
- package/src/abstract-document-xml/xsd-template/styles.ts +6 -0
- package/src/abstract-document-xml/xsd-template/xsd-template.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const xsd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"HeaderFooter\">\n <xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"differentFirstPage\" type=\"xs:boolean\" use=\"optional\"/>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"firstPageHeaderMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"firstPageFooterMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"StyleNames\">\n\t<xs:sequence>\n\t\t<xs:element name=\"StyleName\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:sequence>\n</xs:complexType>\n <xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n <xs:element name=\"AbstractDoc\">\n <xs:complexType>\n\t\t<xs:sequence>\n\t\t\t<xs:element name=\"StyleNames\" type=\"StyleNames\" minOccurs=\"0\"></xs:element>\n\t\t\t<xs:element name=\"Section\" type=\"Section\"></xs:element>\n\t\t</xs:sequence>\n\t</xs:complexType>\n</xs:element>\n</xs:schema>";
|
|
2
|
-
export declare const xsdPartial = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"HeaderFooter\">\n <xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"differentFirstPage\" type=\"xs:boolean\" use=\"optional\"/>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"firstPageHeaderMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"firstPageFooterMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:element name=\"Table\" type=\"Table\" />\n <xs:element name=\"Group\" type=\"Group\" />\n <xs:element name=\"PageBreak\" type=\"PageBreak\" />\n <xs:element name=\"Paragraph\" type=\"Paragraph\" />\n <xs:element name=\"Markdown\" type=\"Markdown\" />\n</xs:schema>";
|
|
1
|
+
export declare const xsd = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"PageColumnLayout\">\n\t<xs:attribute name=\"columnCount\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"columnGap\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"HeaderFooter\">\n <xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"differentFirstPage\" type=\"xs:boolean\" use=\"optional\"/>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"firstPageHeaderMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"firstPageFooterMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"columnLayout\" type=\"PageColumnLayout\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"StyleNames\">\n\t<xs:sequence>\n\t\t<xs:element name=\"StyleName\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:sequence>\n</xs:complexType>\n <xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n <xs:element name=\"AbstractDoc\">\n <xs:complexType>\n\t\t<xs:sequence>\n\t\t\t<xs:element name=\"StyleNames\" type=\"StyleNames\" minOccurs=\"0\"></xs:element>\n\t\t\t<xs:element name=\"Section\" type=\"Section\"></xs:element>\n\t\t</xs:sequence>\n\t</xs:complexType>\n</xs:element>\n</xs:schema>";
|
|
2
|
+
export declare const xsdPartial = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n <xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n <xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"PageColumnLayout\">\n\t<xs:attribute name=\"columnCount\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"columnGap\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"Section\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t\t<xs:element name=\"page\" type=\"page\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"SectionElement\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"HeaderFooter\">\n <xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"differentFirstPage\" type=\"xs:boolean\" use=\"optional\"/>\n</xs:complexType>\n<xs:complexType name=\"page\">\n\t<xs:annotation>\n\t\t<xs:documentation>Define header and footer.</xs:documentation>\n\t</xs:annotation>\n\t<xs:all>\n\t\t<xs:element name=\"style\" type=\"MasterPageStyle\" />\n\t\t<xs:element name=\"header\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t\t<xs:element name=\"footer\" type=\"HeaderFooter\" minOccurs=\"0\" />\n\t</xs:all>\n</xs:complexType>\n<xs:complexType name=\"PageBreak\" />\n<xs:complexType name=\"Image\">\n <xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n <xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n <xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextField\">\n\t<xs:sequence>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"fieldType\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Date\" />\n\t\t\t\t<xs:enumeration value=\"PageNumber\" />\n\t\t\t\t<xs:enumeration value=\"TotalPages\" />\n\t\t\t\t<xs:enumeration value=\"PageNumberOf\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TextRun\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"HyperLink\">\n\t<xs:choice>\n\t\t<xs:element name=\"style\" type=\"TextStyle\" minOccurs=\"0\"/>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TocSeperator\">\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" />\n</xs:complexType>\n<xs:complexType name=\"LinkTarget\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" />\n</xs:complexType>\n<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>\n<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"firstPageHeaderMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"firstPageFooterMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"columnLayout\" type=\"PageColumnLayout\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"Group\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"style\" type=\"GroupStyle\" minOccurs=\"0\" />\n\t</xs:choice>\n\t<xs:attribute name=\"keepTogether\" type=\"xs:boolean\" />\n</xs:complexType>\n<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Paragraph\">\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TextRun\" type=\"TextRun\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TextField\" type=\"TextField\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t\t<xs:element name=\"Image\" type=\"Image\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"HyperLink\" type=\"HyperLink\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"LinkTarget\" type=\"LinkTarget\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"TocSeperator\" type=\"TocSeperator\" minOccurs=\"0\" maxOccurs=\"unbounded\"></xs:element>\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" minOccurs=\"0\" maxOccurs=\"1\"></xs:element>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"Markdown\">\n\t<xs:attribute name=\"keepTogetherSections\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" />\n</xs:complexType>\n<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableRow\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"TableCell\" type=\"TableCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextCell\" type=\"TextCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageCell\" type=\"ImageCell\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"headerRows\">\n\t<xs:sequence>\n\t\t<xs:choice minOccurs=\"1\" maxOccurs=\"unbounded\">\n\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\"/>\n\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t</xs:choice>\n\t</xs:sequence>\n</xs:complexType>\n<xs:complexType name=\"Table\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"headerRows\" type=\"headerRows\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"style\" type=\"TableStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:sequence>\n\t\t\t<xs:choice minOccurs=\"1\">\n\t\t\t\t<xs:element name=\"TableRow\" type=\"TableRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"TextRow\" type=\"TextRow\" maxOccurs=\"unbounded\" />\n\t\t\t\t<xs:element name=\"ImageRow\" type=\"ImageRow\" maxOccurs=\"unbounded\" />\n\t\t\t</xs:choice>\n\t\t</xs:sequence>\n\t</xs:choice>\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"columnWidths\" type=\"xs:string\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>ColumnWidths of table. Seperated by ,. Eg. \"100,399,200\". Need atleast one columnWidth. Use \"inf\" to automatically adjust width: \"100,Inf\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TableCell\">\n\t<xs:choice maxOccurs=\"unbounded\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t\t<xs:element name=\"Table\" type=\"Table\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Group\" type=\"Group\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"PageBreak\" type=\"PageBreak\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Paragraph\" type=\"Paragraph\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"TextParagraph\" type=\"TextParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"ImageParagraph\" type=\"ImageParagraph\" maxOccurs=\"unbounded\" />\n\t\t<xs:element name=\"Markdown\" type=\"Markdown\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:choice>\n\t<xs:attribute name=\"rowSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:integer\" />\n\t<xs:attribute name=\"styleName\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>\n<xs:complexType name=\"TextRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableCell> \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"TextParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<TextRun text=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" />\n\t</xs:choice>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Refrence to a TextStyle that is defined in \\<AbstractDoc> \\<StyleNames> \\<StyleName name=\"...\" /> \\</StyleNames> \\</AbstractDoc></xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"target\" type=\"xs:string\" />\n\t<xs:attribute name=\"text\" type=\"xs:string\" use=\"required\" />\n</xs:complexType>\n<xs:complexType name=\"ImageRow\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<TableRow> \\<TableCell> \\<Paragraph> \\<Image src text=\"...\" /> \\</Paragraph> \\</TableCell> \\</TableRow></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageCell\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create a \\<ImageCell> \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph> \\</TableCell></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"columnSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"rowSpan\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"TableCellStyle\" />\n\t</xs:choice>\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"paragraphStyle\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n<xs:complexType name=\"ImageParagraph\">\n\t<xs:annotation>\n\t\t<xs:documentation>Shortcut to create \\<Paragraph> \\<Image src=\"...\" /> \\</Paragraph></xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"styleNames\" type=\"xs:string\" />\n\t<xs:attribute name=\"src\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"width\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:attribute name=\"height\" type=\"xs:decimal\" use=\"required\" />\n\t<xs:choice minOccurs=\"0\" maxOccurs=\"1\">\n\t\t<xs:element name=\"style\" type=\"ParagraphStyle\" />\n\t</xs:choice>\n</xs:complexType>\n <xs:element name=\"Table\" type=\"Table\" />\n <xs:element name=\"Group\" type=\"Group\" />\n <xs:element name=\"PageBreak\" type=\"PageBreak\" />\n <xs:element name=\"Paragraph\" type=\"Paragraph\" />\n <xs:element name=\"Markdown\" type=\"Markdown\" />\n</xs:schema>";
|
|
3
3
|
export declare const parsedXsd: readonly import("handlebars-xml").XmlElement[];
|
|
4
4
|
export declare const parsedXsdPartial: readonly import("handlebars-xml").XmlElement[];
|
|
5
5
|
//# sourceMappingURL=xsd-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xsd-template.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"xsd-template.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,GAAG,4w2BAMH,CAAC;AAEd,eAAO,MAAM,UAAU,4txBASV,CAAC;AAEd,eAAO,MAAM,SAAS,gDAAgB,CAAC;AAEvC,eAAO,MAAM,gBAAgB,gDAAuB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import * as Styles from "./styles.js";
|
|
|
3
3
|
import * as CustomElements from "./custom-elements.js";
|
|
4
4
|
import { parseXsd } from "handlebars-xml";
|
|
5
5
|
const commonParts = `${Styles.layoutFoundation}
|
|
6
|
+
${Styles.pageColumnLayout}
|
|
6
7
|
${Elements.section}
|
|
7
8
|
${Elements.sectionElement}
|
|
8
9
|
${Elements.headerFooter}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xsd-template.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,GAAG,GAAG,MAAM,CAAC,gBAAgB;EAC5C,QAAQ,CAAC,OAAO;EAChB,QAAQ,CAAC,cAAc;EACvB,QAAQ,CAAC,YAAY;EACrB,QAAQ,CAAC,IAAI;EACb,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,KAAK;EACd,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,OAAO;EAChB,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,YAAY;EACrB,QAAQ,CAAC,UAAU;EACnB,MAAM,CAAC,QAAQ;EACf,MAAM,CAAC,eAAe;EACtB,QAAQ,CAAC,KAAK;EACd,MAAM,CAAC,UAAU;EACjB,MAAM,CAAC,SAAS;EAChB,MAAM,CAAC,cAAc;EACrB,MAAM,CAAC,UAAU;EACjB,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,QAAQ;EACjB,MAAM,CAAC,cAAc;EACrB,QAAQ,CAAC,QAAQ;EACjB,QAAQ,CAAC,UAAU;EACnB,QAAQ,CAAC,KAAK;EACd,QAAQ,CAAC,SAAS;EAClB,cAAc,CAAC,OAAO;EACtB,cAAc,CAAC,QAAQ;EACvB,cAAc,CAAC,aAAa;EAC5B,cAAc,CAAC,QAAQ;EACvB,cAAc,CAAC,SAAS;EACxB,cAAc,CAAC,cAAc,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,GAAG,GAAG;;MAEb,WAAW;MACX,MAAM,CAAC,UAAU;MACjB,MAAM,CAAC,SAAS;MAChB,QAAQ,CAAC,WAAW;aACb,CAAC;AAEd,MAAM,CAAC,MAAM,UAAU,GAAG;;MAEpB,QAAQ,CAAC,OAAO;MAChB,WAAW;;;;;;aAMJ,CAAC;AAEd,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"xsd-template.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/xsd-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,GAAG,GAAG,MAAM,CAAC,gBAAgB;EAC5C,MAAM,CAAC,gBAAgB;EACvB,QAAQ,CAAC,OAAO;EAChB,QAAQ,CAAC,cAAc;EACvB,QAAQ,CAAC,YAAY;EACrB,QAAQ,CAAC,IAAI;EACb,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,KAAK;EACd,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,OAAO;EAChB,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,YAAY;EACrB,QAAQ,CAAC,UAAU;EACnB,MAAM,CAAC,QAAQ;EACf,MAAM,CAAC,eAAe;EACtB,QAAQ,CAAC,KAAK;EACd,MAAM,CAAC,UAAU;EACjB,MAAM,CAAC,SAAS;EAChB,MAAM,CAAC,cAAc;EACrB,MAAM,CAAC,UAAU;EACjB,QAAQ,CAAC,SAAS;EAClB,QAAQ,CAAC,QAAQ;EACjB,MAAM,CAAC,cAAc;EACrB,QAAQ,CAAC,QAAQ;EACjB,QAAQ,CAAC,UAAU;EACnB,QAAQ,CAAC,KAAK;EACd,QAAQ,CAAC,SAAS;EAClB,cAAc,CAAC,OAAO;EACtB,cAAc,CAAC,QAAQ;EACvB,cAAc,CAAC,aAAa;EAC5B,cAAc,CAAC,QAAQ;EACvB,cAAc,CAAC,SAAS;EACxB,cAAc,CAAC,cAAc,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,GAAG,GAAG;;MAEb,WAAW;MACX,MAAM,CAAC,UAAU;MACjB,MAAM,CAAC,SAAS;MAChB,QAAQ,CAAC,WAAW;aACb,CAAC;AAEd,MAAM,CAAC,MAAM,UAAU,GAAG;;MAEpB,QAAQ,CAAC,OAAO;MAChB,WAAW;;;;;;aAMJ,CAAC;AAEd,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-document",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.9",
|
|
4
4
|
"description": "Dynamically create documents using code or JSX and render to any format",
|
|
5
5
|
"repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-document",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"!/**/__tests__"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"abstract-image": "^12.0.
|
|
24
|
+
"abstract-image": "^12.0.2",
|
|
25
25
|
"docx": "^6.0.3",
|
|
26
26
|
"fast-xml-parser": "^4.5.0",
|
|
27
27
|
"handlebars": "4.7.8",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"vite": "^6.0.1",
|
|
51
51
|
"vitest": "^2.1.6"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d7d447f52b19c33cb3aa12b2fefc3de2fb20ef9c"
|
|
54
54
|
}
|
|
@@ -3,6 +3,15 @@ import * as LayoutFoundation from "../primitives/layout-foundation.js";
|
|
|
3
3
|
export type PageOrientation = "Portrait" | "Landscape";
|
|
4
4
|
export type PaperSize = "A4" | "Letter" | { readonly width: number; readonly height: number };
|
|
5
5
|
|
|
6
|
+
export interface PageColumn {
|
|
7
|
+
readonly width: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface PageColumnLayout {
|
|
11
|
+
readonly columnCount: number;
|
|
12
|
+
readonly columnGap: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
6
15
|
export interface PageStyle {
|
|
7
16
|
readonly headerMargins: LayoutFoundation.LayoutFoundation;
|
|
8
17
|
readonly footerMargins: LayoutFoundation.LayoutFoundation;
|
|
@@ -12,6 +21,7 @@ export interface PageStyle {
|
|
|
12
21
|
readonly orientation: PageOrientation;
|
|
13
22
|
readonly paperSize: PaperSize;
|
|
14
23
|
readonly noTopBottomMargin: boolean;
|
|
24
|
+
readonly columnLayout: PageColumnLayout;
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
export interface PageStyleProps {
|
|
@@ -23,6 +33,7 @@ export interface PageStyleProps {
|
|
|
23
33
|
readonly orientation?: PageOrientation;
|
|
24
34
|
readonly paperSize?: PaperSize;
|
|
25
35
|
readonly noTopBottomMargin?: boolean;
|
|
36
|
+
readonly columnLayout?: PageColumnLayout;
|
|
26
37
|
}
|
|
27
38
|
|
|
28
39
|
export function create(props?: PageStyleProps): PageStyle {
|
|
@@ -35,6 +46,10 @@ export function create(props?: PageStyleProps): PageStyle {
|
|
|
35
46
|
orientation = "Portrait",
|
|
36
47
|
paperSize = "A4",
|
|
37
48
|
noTopBottomMargin = false,
|
|
49
|
+
columnLayout = {
|
|
50
|
+
columnCount: 1,
|
|
51
|
+
columnGap: 0,
|
|
52
|
+
},
|
|
38
53
|
} = props || {};
|
|
39
54
|
return {
|
|
40
55
|
headerMargins,
|
|
@@ -45,6 +60,7 @@ export function create(props?: PageStyleProps): PageStyle {
|
|
|
45
60
|
orientation,
|
|
46
61
|
paperSize,
|
|
47
62
|
noTopBottomMargin,
|
|
63
|
+
columnLayout,
|
|
48
64
|
};
|
|
49
65
|
}
|
|
50
66
|
|
|
@@ -25,7 +25,11 @@ export function measurePages(
|
|
|
25
25
|
const pdf = new pdfKit();
|
|
26
26
|
registerFonts((fontName: string, fontSource: AD.Font.FontSource) => pdf.registerFont(fontName, fontSource), document);
|
|
27
27
|
return mergeMaps(
|
|
28
|
-
pages.
|
|
28
|
+
pages.flatMap((page) =>
|
|
29
|
+
page.columns.map(({ elements }) =>
|
|
30
|
+
measureSection(pdf, document, page.section, page.header, page.footer, elements)
|
|
31
|
+
)
|
|
32
|
+
)
|
|
29
33
|
);
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -45,8 +49,11 @@ function measureSection(
|
|
|
45
49
|
const pageHeight = AD.PageStyle.getHeight(section.page.style);
|
|
46
50
|
const resources = AD.Resources.mergeResources([section, parentResources]);
|
|
47
51
|
|
|
48
|
-
const
|
|
52
|
+
const totalContentAvailableWidth =
|
|
49
53
|
pageWidth - (section.page.style.contentMargins.left + section.page.style.contentMargins.right);
|
|
54
|
+
const contentAvailableWidth =
|
|
55
|
+
totalContentAvailableWidth / section.page.style.columnLayout.columnCount -
|
|
56
|
+
section.page.style.columnLayout.columnGap * (section.page.style.columnLayout.columnCount - 1);
|
|
50
57
|
const contentAvailableSize = AD.Size.create(contentAvailableWidth, pageHeight);
|
|
51
58
|
const sectionSizes = children.map((e) => measureSectionElement(pdfKit, resources, contentAvailableSize, e));
|
|
52
59
|
|
|
@@ -174,16 +181,21 @@ function measureParagraph(
|
|
|
174
181
|
} else if (hasAtomImage) {
|
|
175
182
|
paragraphHeight += desiredHeight + currentRowHeight;
|
|
176
183
|
} else {
|
|
177
|
-
const height = heightOfString(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
);
|
|
184
|
+
// const height = heightOfString(
|
|
185
|
+
// pdfKit,
|
|
186
|
+
// textOptions?.fontFamily ?? "Helvetica",
|
|
187
|
+
// textOptions?.fontSize ?? 10,
|
|
188
|
+
// concatenatedText,
|
|
189
|
+
// {
|
|
190
|
+
// width: textOptions && textOptions.lineBreak === false ? Infinity : availableSize.width,
|
|
191
|
+
// ...textOptions,
|
|
192
|
+
// }
|
|
193
|
+
// );
|
|
194
|
+
|
|
195
|
+
const height = pdfKit.heightOfString(concatenatedText, {
|
|
196
|
+
width: textOptions && textOptions.lineBreak === false ? Infinity : availableSize.width,
|
|
197
|
+
...textOptions,
|
|
198
|
+
});
|
|
187
199
|
paragraphHeight += height;
|
|
188
200
|
}
|
|
189
201
|
}
|