I have a pdf document which is encrypted and where the password is unknown to me. In the first step i want to read the count of pages. I do this with the following code.
Dim PDFDoc As PdfDocument = New PdfDocument (MyPath, "")
DocPageCount = PDFDoc.Pages.Count
In the first line of the code an error occures: "Document can not be decrypted. Urecognized algorithm."
In a second step i would like to extract some pages of this document an add them to an new pdf document. The same error occures.
Is it possible to achive this with DynamicPDF Merger.
Thanks
Nikolaus Dirks
Read encrypted documents
Re: Read encrypted documents
Support · Apr 2, 2012Hello Nikolaus,
If you are merging a password protected PDF document then you will need to use the owner password to merge the PDF document using our DynamicPDF Merger for .NET product.
If you are merging a PDF document which is not password protected and getting this error then please send over the following details to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so that they can look into it further.
1. PDF document with which you are getting error.
2. Full stack trace of error message.
Thanks,
ceTe Software Support Team.