I put a password protect on my pdf so that someone can't edit it when they pull it up. But when I run my program and it tries to do the form fills I get an error saying it can't be decrypted, invalid password. How do I add the password or use the pdf document object for this? I currently have
Dim MyDocument As Mergedocument = New MergeDocument(path, New MergeOptions(True))
pdf security w/ password
Re: pdf security w/ password
Support · Aug 7, 2007Hello,
The reason you are getting this error because the PDF document which you are merging is encrypted with a password. In order to merge such PDF documents you will have to supply the password to decrypt it.
In order to merge encrypted PDF documents, you have to use the PdfDocument object which takes password as the parameter in one of its overloaded constructor, and pass this PdfDocument object to the overloaded MergeDocument's constructor. This will resolve your problem.
Thanks,
ceTe Software Support Team