I work for a software company which produces assistive software to help people with visual impairments and disabilities. At the moment I am working on an application which uses the PDF-XChange Viewer control to open and display pdf files. Also, the application encompasses a screen reader which reads back the text on screen out loud to the user.
In unsecured pdf files, this works well as you would expect. However, when a document is password protected and has the property "Content Copying for Accessibility" set to "Allowed", I am unable to get the text required for the screen reader.
The application is being developed in C# and once the document has been opened and the password correctly entered, I attempt to get the text by using:
Code: Select all
pdfMain.DoVerb("Documents[#" + mDocId.ToString() + "].Pages[" + CurrentPageIndex().ToString() + "].Text", "Get", vDataInA, out vDataOut);
Furthermore, a requirement of this application is to open and read pdf files that have been protected with a custom security handler implemented by a third-party company, ESDNow. We can successfully open and view these pdf files in our application, but as above, we cannot get the text.
I understand that for simple password protected pdf files we could use:
Code: Select all
DoDocumentVerb(docId, "", "RemoveSecurity", NULL, NULL, 0);
Is there any way around this?