I am trying to modify a table programatically after loading it from XML, however it seems that the Page.Paragraphs collection is empty after loading the XML.
Am I doing something wrong?
XML:
<?xml version="1.0" encoding="utf-8" ?>
<Pdf xmlns="Aspose.Pdf">
<Section>
<Table>
<Row>
<Cell>
<Text>
<Segment>test</Segment>
</Text>
</Cell>
</Row>
</Table>
</Section>
</Pdf>
C#:
var newPdf = new Document(xmlString, new XmlLoadOptions());
newPdf.Pages[1].Paragraphs[1].IsInNewPage = true; // Throws index out of bounds exception