Hi Ramu,
Thanks for your inquriy. you can easily insert an empty page to desired index and you can also add data to it and add bookmark for the page as following. Hopefully it will help you to accompmish the task.
//Open the document
Document pdfDocument1 = new Document("Input.pdf");
Aspose.Pdf.Page page=pdfDocument1.Pages.Insert(2);
TextFragment text = new TextFragment("test page");
page.Paragraphs.Add(text);
// Create a bookmark object
OutlineItemCollection pdfOutline = new OutlineItemCollection(pdfDocument1.Outlines);
pdfOutline.Title = "Test Outline";
pdfOutline.Italic = true;
pdfOutline.Bold = true;
// Set the destination page number
pdfOutline.Action = new GoToAction(page);
// Add bookmark in the document's outline collection.
pdfDocument1.Outlines.Add(pdfOutline);
//Save output file
pdfDocument1.Save("output.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Thanks for the Quick response.
Hi Ramu,