How can I set different page height for only one page in a PDF ? [ using (Aspose.Pdf.Document)]
In the below code snippet I’ve created 2 pages (PagecurPageAND PagechartPage) , for the second page i.e. chartPage, I need to set a height based on some custom logic. So I did create a separate PageInfopageInfo1 and set the height, but it never worked.
But if I do set height for the first PageInfopageInfo object then it works, BUT it set that height for ALL the pages.
My requirement is to set a specific height for only one page, i.e., Page chartPage. Please advise or help a for a solution.
            Document doc = newDocument();
            Aspose.Pdf.License licensePDF = new Aspose.Pdf.License();
            PageInfopageInfo = doc.PageInfo;
            Aspose.Pdf.MarginInfo marginInfo = pageInfo.Margin;
            marginInfo.Left = 37;
            marginInfo.Right = 37;
            marginInfo.Top = 37;
            marginInfo.Bottom =
37;            
            
            // Added page.
            Page curPage = doc.Pages.Add();
            //Add the table into the paragraphs collection of section
            Aspose.Pdf.Paragraphs paragraphs = curPage.Paragraphs;
            //Add content/data for the page 
              // Added New page.
Page chartPage = doc.Pages.Add();
                // add text fragment
to paragraphs collection of Page object
chartPage.Paragraphs.Add(textSearchCriteris);
                 PageInfopageInfo1 =
chartPage.PageInfo;
                pageInfo1.Height = 4000;
Thanks
Sree