Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
sec1.PageInfo.PageHeight = 4000;
I don't want to hardcoded the page height.
I just want it should be fixed automatically according to data or number of rows present in the pdf.