Dear Syncfusion,
I want to load a pdf into another pdf at specific no. That is, if the current pdf has 11 page and another pdf has 3 page, I want to add second pdf to first pdf at page no 3.
My code is:
documentLoaded = new PdfLoadedDocument(pathTemporaryPdf);
PdfLoadedDocument loadedDocumentToBeAdded = new PdfLoadedDocument(filePathFull);
int pageNumber = 3;
for (int i =0; i < loadedDocumentToBeAdded.Pages.Count; i++){
var page = loadedDocumentToBeAdded.Pages[i];
documentLoaded.Pages.Insert(pageNumber + i, page);
}
it is creating an error:
An item with the same key has already been added
Can anybody help me?