Hello
Merging the following two PDFs fails with an Object reference error.
Link 1: https://www.daikin.eu/content/dam/docum ... 10A_LR.pdf
Link 2: https://assetsprod.microsoft.com/benefi ... nefits.pdf
Thanks,
R.
//Get the paths of the documents to be merged
String[] files = new String[] {
"C:\\Users\\Administrator\\Desktop\\ECPEN17-710A_LR (1).pdf",
"C:\\Users\\Administrator\\Desktop\\Microsoft AI Cloud Partner Program benefits guide_Jan 2025.pdf"};
//Merge these documents and return an object of PdfDocumentBase
PdfDocumentBase doc = PdfDocument.MergeFiles(files);
//Save the result to a PDF file
doc.Save("Merged.pdf", Spire.Pdf.FileFormat.PDF);