omega-pdf
Omega PDF: read and write PDF files in Omega
Brought by drakestapleton
omega-pdf / corpus / src / layout.fodt
| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- omega-pdf test corpus: hand-written OpenDocument flat text (first-party, Apache-2.0). |
| 3 | One A4 landscape page, two proportional font faces (DejaVu Serif body, DejaVu Sans heading and table), |
| 4 | bold and italic spans and a 3x4 table. Converted to corpus/pdf/layout.pdf by LibreOffice. --> |
| 5 | <office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" |
| 6 | xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" |
| 7 | xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" |
| 8 | xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" |
| 9 | xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" |
| 10 | xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" |
| 11 | office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.text"> |
| 12 | <office:font-face-decls> |
| 13 | <style:font-face style:name="DejaVu Serif" svg:font-family="'DejaVu Serif'" style:font-family-generic="roman" style:font-pitch="variable"/> |
| 14 | <style:font-face style:name="DejaVu Sans" svg:font-family="'DejaVu Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/> |
| 15 | </office:font-face-decls> |
| 16 | <office:styles> |
| 17 | <style:default-style style:family="paragraph"> |
| 18 | <style:text-properties style:font-name="DejaVu Serif" fo:font-size="12pt" fo:language="en" fo:country="GB"/> |
| 19 | </style:default-style> |
| 20 | <style:style style:name="Standard" style:family="paragraph"> |
| 21 | <style:paragraph-properties fo:margin-bottom="0.3cm"/> |
| 22 | </style:style> |
| 23 | </office:styles> |
| 24 | <office:automatic-styles> |
| 25 | <style:page-layout style:name="pmLand"> |
| 26 | <style:page-layout-properties fo:page-width="29.7cm" fo:page-height="21cm" style:print-orientation="landscape" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2.5cm" fo:margin-right="2.5cm"/> |
| 27 | </style:page-layout> |
| 28 | <style:style style:name="PHead" style:family="paragraph" style:parent-style-name="Standard"> |
| 29 | <style:text-properties style:font-name="DejaVu Sans" fo:font-size="20pt" fo:font-weight="bold"/> |
| 30 | </style:style> |
| 31 | <style:style style:name="PCell" style:family="paragraph" style:parent-style-name="Standard"> |
| 32 | <style:paragraph-properties fo:margin-bottom="0cm"/> |
| 33 | <style:text-properties style:font-name="DejaVu Sans" fo:font-size="11pt"/> |
| 34 | </style:style> |
| 35 | <style:style style:name="TBold" style:family="text"> |
| 36 | <style:text-properties fo:font-weight="bold"/> |
| 37 | </style:style> |
| 38 | <style:style style:name="TItal" style:family="text"> |
| 39 | <style:text-properties fo:font-style="italic"/> |
| 40 | </style:style> |
| 41 | <style:style style:name="Tab1" style:family="table"> |
| 42 | <style:table-properties style:width="18cm" table:align="left"/> |
| 43 | </style:style> |
| 44 | <style:style style:name="Tab1Col" style:family="table-column"> |
| 45 | <style:table-column-properties style:column-width="6cm"/> |
| 46 | </style:style> |
| 47 | <style:style style:name="Tab1Cell" style:family="table-cell"> |
| 48 | <style:table-cell-properties fo:padding="0.1cm" fo:border="0.5pt solid #000000"/> |
| 49 | </style:style> |
| 50 | </office:automatic-styles> |
| 51 | <office:master-styles> |
| 52 | <style:master-page style:name="Standard" style:page-layout-name="pmLand"/> |
| 53 | </office:master-styles> |
| 54 | <office:body> |
| 55 | <office:text> |
| 56 | <text:p text:style-name="PHead">A landscape page</text:p> |
| 57 | <text:p text:style-name="Standard">This page is wider than it is tall. The body is set in a serif face with <text:span text:style-name="TBold">bold words</text:span> and <text:span text:style-name="TItal">italic words</text:span>, while the heading and the table use a sans serif face.</text:p> |
| 58 | <table:table table:name="Table1" table:style-name="Tab1"> |
| 59 | <table:table-column table:style-name="Tab1Col" table:number-columns-repeated="3"/> |
| 60 | <table:table-row> |
| 61 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell"><text:span text:style-name="TBold">Part</text:span></text:p></table:table-cell> |
| 62 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell"><text:span text:style-name="TBold">Count</text:span></text:p></table:table-cell> |
| 63 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell"><text:span text:style-name="TBold">Note</text:span></text:p></table:table-cell> |
| 64 | </table:table-row> |
| 65 | <table:table-row> |
| 66 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">Header</text:p></table:table-cell> |
| 67 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">1</text:p></table:table-cell> |
| 68 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell"><text:span text:style-name="TItal">first line of the file</text:span></text:p></table:table-cell> |
| 69 | </table:table-row> |
| 70 | <table:table-row> |
| 71 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">Objects</text:p></table:table-cell> |
| 72 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">42</text:p></table:table-cell> |
| 73 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">numbered and found by offset</text:p></table:table-cell> |
| 74 | </table:table-row> |
| 75 | <table:table-row> |
| 76 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">Trailer</text:p></table:table-cell> |
| 77 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">1</text:p></table:table-cell> |
| 78 | <table:table-cell table:style-name="Tab1Cell" office:value-type="string"><text:p text:style-name="PCell">names the root</text:p></table:table-cell> |
| 79 | </table:table-row> |
| 80 | </table:table> |
| 81 | <text:p text:style-name="Standard">After the table comes one more sentence in the serif face, with a last <text:span text:style-name="TItal">italic</text:span> and a last <text:span text:style-name="TBold">bold</text:span> word.</text:p> |
| 82 | </office:text> |
| 83 | </office:body> |
| 84 | </office:document> |