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
Fixed App error on pdf to image for protected files #739
Conversation
Code Climate has analyzed commit 9a35d11 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@Swati4star @vyankatesh24 Please review. |
@jddeep I couldn't replicate the issue despite trying many times on a password-protected PDF file. I am getting |
Yes @sidhuparas The app won't crash. Here, there can be two reasons why you are facing this error. Either your selected pdf has no images in it or the password you entered to decrypt the file is wrong(likely this is the problem). |
@Swati4star Done! |
@vyankatesh24 Some pdfs i am able to convert to images while some are showing similar problem. Can you please test into it and suggest what could be the problem now. |
@jddeep It didn't ask me for password to decrypt. But if it isn't able to decrypt PDF, how can it scan for images? |
@sidhuparas It would ask for password. Please check again. Pull the latest commit and try again. |
@jddeep Actually I didn't even try this PR's code. Master branch code is working fine for me without any crash. Tried for several different files and tried many times. |
@sidhuparas i had the same confusion but @vyankatesh24 pointed it out. Try to extract images from password protected files. It would show error snackbar. |
@vyankatesh24 I have tested it. The password dialog only appears for encrypted files and not for all files. Have you tested my last and latest changes? |
Yeah, I had tested the latest changes only |
@vyankatesh24 First try with an unencrypted file. (First test) Then try with encrypted files and see. Please tell me after that. |
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
@vyankatesh24 Fixed! |
Still, There are in |
@vyankatesh24 Where? |
@vyankatesh24 Everything is fixed. Please review. |
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/fragment/PdfToImageFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/fragment/PdfToImageFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/fragment/PdfToImageFragment.java
Outdated
Show resolved
Hide resolved
@vyankatesh24 Kindly please check into the issue label. It took quite a lot of work and time. |
@vyankatesh24 Changes have been made. Please review. |
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
app/src/main/java/swati4star/createpdf/util/PDFEncryptionUtility.java
Outdated
Show resolved
Hide resolved
@vyankatesh24 Have a look now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well Done @jddeep 👍
Description
Fixed App error on pdf to image for protected files.
Fixes #727
Type of change
Just put an x in the [] which are valid.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
./gradlew assembleDebug assembleRelease
./gradlew checkstyle
Checklist: