Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Open password protected PDF files #24

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments
Open

Feature Request: Open password protected PDF files #24

GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Just tried to open a password protected PDF file, and the pdf viewer just
crashed (Force Close error). It would be great if this supported protected
documents, or at the very least it shouldn't crash when attempting to open
one. Great program otherwise, though.

Original issue reported on code.google.com by maciel310 on 21 Apr 2010 at 10:04

@GoogleCodeExporter
Copy link
Author

Original comment by mpietrzak on 22 Apr 2010 at 8:21

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I also get the problem, the I read the source file pdfview2.c , I found the 
method parse_pdf_file : 
 if (pdf_needs_password(pdf->xref)) {
        int authenticated = 0;
        authenticated = pdf_authenticate_password(pdf->xref, "");
        if (!authenticated) {
            /* TODO: ask for password */
            __android_log_print(ANDROID_LOG_ERROR, PDFVIEW_LOG_TAG, "failed to authenticate with empty password");
            return NULL;
        }
    } 
in the source , but I don'n know how to do 

Original comment by WangNin...@gmail.com on 6 Feb 2012 at 3:11

@GoogleCodeExporter
Copy link
Author

Hi Maciel n WangNin,

  If you have static pdf password, just put in this line 
"authenticated = pdf_authenticate_password(pdf->xref, 
"put-your-password-here");"
At least that was i'm doing :)

Best Regards,
Santo

Original comment by abun.sa...@gmail.com on 6 Feb 2012 at 4:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant