I have this simple app and the merge isn't working. Files are attached.
Code:
Dim sFiles As String = ""
Dim i As Integer = 0
Dim files As [String]() = New [String]() {"C:\Temp\MCP\2016002573SNS.pdf", "C:\Temp\MCP\2016006270SNS.pdf", "C:\Temp\MCP\2016007561SNS.pdf"}
Dim docs As PdfDocument() = New PdfDocument(files.Length - 1) {}
For i = 0 To files.Length - 1
docs(i) = New PdfDocument(files(i))
Next
i = 0
While i < docs(1).Pages.Count
docs(0).InsertPage(docs(1), 0)
i = i + 1
End While
i = 0
While i < docs(2).Pages.Count
docs(0).InsertPage(docs(2), 0)
i = i + 1
End While
docs(0).SaveToFile("C:\temp\MCP\Test.pdf", FileFormat.PDF)
For Each doc As PdfDocument In docs
doc.Close()
Next