One page of a sales report, converted. Below is the start of the XML our engine wrote for a one-page test report with a ruled table. We cut the paragraph text, the last three table rows and the closing paragraph for space. Element names, attributes and their values are exactly as written.
<?xml version="1.0" encoding="UTF-8"?>
<document source="report_with_table.pdf" pages="1" units="pt" origin="top-left">
<page number="1" width="595.3" height="841.9">
<heading level="1">Regional Summary</heading>
<paragraph>Quarterly revenue grew across all three regions...</paragraph>
<table rows="6" columns="4" source="lattice">
<row header="1"><cell>Region</cell><cell>Licenses</cell><cell>Revenue</cell><cell>Share</cell></row>
<row><cell>North</cell><cell>120</cell><cell>15,400.00</cell><cell>12%</cell></row>
<row><cell>South</cell><cell>157</cell><cell>17,710.00</cell><cell>15%</cell></row>
<!-- 3 more rows -->
</table>
</page>
</document>