Quote Originally Posted by cthai View Post
hello -

Sorry I am an extreme newbie at this vb.net - but i copy your code and am curious where is the output?
Do you know how to call a function or a sub?
If you copied that function as is, you see that it takes 2 parameters. The first one is an array of string which contains the paths to the pdf files you wish to merge. The 2nd parameter is a string that you specify the path of the output (merged) pdf file. For example, if you have the following pdf files:
c:\1.pdf, c:\2.pdf, c:\3.pdf and you want to merge them all to a file called merged.pdf in the c:\ drive. You would set it up like this:
Code:
Dim input() as string = {"c:\1.pdf", "c:\2.pdf", "c:\3.pdf"}
Dim output as string = "c:\merged.pdf"
'Then call the function to merge the files
If MergePdfFiles(input, output) = True Then
      MessageBox.Show("Files successfully merged.")
Else
      MessageBox.Show("Files did not merged successfully")
End If