We are using latest version of spire.pdf.dll and spire.pdf.wpf.dll and we are getting system.nullReference Exception when we merge the splitted documents.
steps we are using are
1. Split the pdf document using following code.
- Code: Select all
string pattern = Path.Combine(outputPath, Path.GetFileNameWithoutExtension(doc) + "_{0}.pdf");
Doc.Split(pattern, 1);
2. Merging the same splitted documents using following code.
- Code: Select all
var doc2 = PdfDocument.MergeFiles(Directory.GetFiles(outputPath));
doc2.Save(outputFile, FileFormat.PDF);
I have send you an e-mail containing the original document in which we are facing this specific issue.