Create tables in XML to pass them to PDF

0

I have this XML, in which I use Aspose.pdf in JAVA so that, through this XML, I can create a PDF with the data I want to put in it. The problem is that I want to make a table and it does not work for me. I've tried it this way:

    <?xml version="1.0" encoding="utf-8" ?>
<Pdf xmlns="Aspose.Pdf">
    <Section IsNewPage="false" MarginLeft="30">
        <Table MarginTop="20" ColumnWidths="140">
            <Row FixedRowHeight="10">
                <Cell>
                    <TextFragment FontSize="9" FontName="Arial">
                        <TextSegment IsTrueTypeFontBold="true" IsTrueTypeFontItalic="true">DATOS DEL SEGURO</TextSegment>
                    </TextFragment>
                    <TextFragment FontSize="9" FontName="Arial">
                        <TextSegment IsTrueTypeFontBold="true" IsTrueTypeFontItalic="true">DATOS DEL SEGURO</TextSegment>
                    </TextFragment>
                    <TextFragment FontSize="9" FontName="Arial">
                        <TextSegment IsTrueTypeFontBold="true" IsTrueTypeFontItalic="true">DATOS DEL SEGURO</TextSegment>
                    </TextFragment>
                </Cell>
            </Row>
        </Table>
    </Section>
</Pdf>

I also try to set margins and they do not work for me, except the MarginTop:

<Section IsNewPage="false" MarginLeft="30">

I hope you can help me, thank you very much.

    
asked by Richard Sánchez Coliao 13.09.2018 в 13:33
source

0 answers