Why did I get the exception “Could not open input file” when encrypt and merge pdf

Because the PDF you are trying to encrypt or merge has annotations on it. For now, Dynamic .NET TWAIN doesn't support this kind of PDF in encrypt() and merge() methods.