I have sample pdf XML Template:
<?xml version="1.0" encoding="utf-8" ?>
<Pdf
xmlns="Aspose.Pdf">
<Section
ID="Section1">
<Segment
ID="Item1">item 1
<Text
IsFirstParagraph="true">
<Segment
ID="Item2">some content
and sample c# program code:
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
pdf1.BindXML("sample.xml", null);
int pc = pdf1.PageCount;
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections["Section1"];
var copy = sec1.CompleteClone() as Aspose.Pdf.Generator.Section;
pdf1.Sections.Add(copy);
pdf1.Save("XmlTemp.pdf");
Section1 after CompleteClone renders two Text Segments on one page (page number 3). Orginal Section1 is generated on two pages - valid (page number 1 and 2).
Why IsFirstParagraph attribute after CompleteClone doesn't work ?