Community

Recognize password protected PDF

Hi,

I have password protected PDF file.

Is there any way to recognize the PDF and convert it to the Word Document using Abbyy OCR sdk.

Please help.

Thanks!

0

Comments

4 comments

  • Avatar
    Koen de Leijer

    Hi

    I was having the same question and did not find any other solution in FineReader than to include a password-file with all known passwords.
    See help: AddImageFileWithPassword Method of the FRDocument Object
    And see why ABBYY does not: https://forum.ocrsdk.com/thread/5149-ocrsdk-has-access-restrictions-and-cannot-be-added-to-the-document/?order=all#comment-9b723d1e-13b3-4ebf-b74c-a74500c14a36

    If you are programming in Java and would really want to remove the protection, you could use Apache PDFBox in front of ABBYY's Finereader.
    See: https://pdfbox.apache.org/docs/2.0.2/javadocs/org/apache/pdfbox/pdmodel/PDDocument.html

    One of my samples to create a new PDF as a copy of the original PDF, but without protection;:

            //Use Apache PDFBox to remove protection from PDF
            PDDocument doc = null;
            try {
                File in = new File(inputPath);
                doc = PDDocument.load(in);
                if (doc.isEncrypted()) {
                    doc.setAllSecurityToBeRemoved(true);
                }
                doc.save(outputPath);
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                if (doc != null) {
                    doc.close();
                }
            }

    Keep in mind that after removing the protection of a legal document, it might not be valid anymore.
    So you should always consider creating a backup of the original file.

    Best regards
    Koen de Leijer

    0
  • Avatar
    Martin Smith

    Try Softaken PDF Champ

    0
  • Avatar
    Rajesh Raj

    Thanks for this information. It useful

    0
  • Avatar
    Joseph paul

    Hi,

    I have password protected PDF file.

    Is there any way to recognize the PDF and convert it to the Word Document using Abbyy OCR sdk.

    Please help.

    Thanks!

    Hi!

    ABBYY is good for Document conversion, but if you want to remove Passwords from them I must recommend you to use Adobe DC and open the file with 

     

    1. Open the PDF, select Tools Protect > More Options > Remove Security.
    2. Options may vary depending on the type of password security set to the PDF:
      • If there’s only a Document Open password, click OK to remove it from the PDF.
      • If the PDF has a permissions password, you’ll need to first type it in the Enter Password box.
      • Once that is done, click OK. Click OK again, confirming your choice.

    Reference: Taken from a guide about how to password protect a pdf.

    I think DC pro version also have feature to convert it to a doc file, but I never used it for this purpose and used Abbyy for this everytime.

     

     

    0

Please sign in to leave a comment.