Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

How do I modify a table that was loaded using XmlLoadOptions?

$
0
0
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

Viewing all articles
Browse latest Browse all 3131

Trending Articles