Frequently Asked Question:
Can I use the MergeFileList function with one or more encrypted files?
I am using the AddToFileList in Delphi to populate a list to use with the MergeFileList function. Can I combine PDF files this way if one or more of the files in my list are encrypted? If so, how is it done?
No, it's not possible to merge a PDF file that is encrypted (in the majority of cases). Too much of the vital information required to copy the objects from a PDF to a new document cannot be accessed if the document is encrypted.
So it's necessary to call the SetPassword and DecryptFile functions on encrypted files before the merging process.