-
Notifications
You must be signed in to change notification settings - Fork 814
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
Widget takes forever to load when password encrypted file is opened on Desktop #1808
Comments
Also very small files less than 1MB opens well with password also. |
@VijayakumarMariappan Which pdf viewer engine does this library use to view pdf in desktop? The Only Issue is the slowness is directly proportional to type of encryption algorithm used, It opens well with RC encryption, But if we use AES encryption it takes a lot of time to view the pdf file. Regular Chrome or any other browser/ pdf viewer can open AES encrypted files in milliseconds. |
Hi @hkpanchani, We use the following libraries to render the PDF. Windows - pdfium We create PDF document instance using these libraries to retrieve the image of the PDF pages. We suspect that in the provided document, all the content of the PDF document is also encrypted. Due to this encryption, the whole content of the document needs to be decrypted, hence the PDF document instance creation takes longer than the normal PDF document. |
It might be possible that content might be encrypted, but I also tried using syncfusion_flutter_pdf to encrypt document, it still takes the same time. Would you like me try something and send the output? @immankumarsync Is it possible to get help here? |
Hi @hkpanchani, |
Hello @hkpanchani , have you found a solution? I'm encountering a similar problem with the SfPdfViewer widget in this plugin. It works smoothly with passwordless files but takes an eternity to open encrypted files on both Windows and Mac desktop platforms. |
Not yet, Nothing. @immankumarsync and team are checking on this one why it is taking time to decrypt the file. |
@hkpanchani, The provided encrypted PDF document (File: Encrypted_File.pdf, Size: 11065KB) has all its contents encrypted. When we remove the encryption from this document, we decrypt its contents and then compress them again. Given that the size of the PDF document is 11 MB, based on our analysis, this process took approximately 21 seconds, and is expected. |
Yes facing same issue in Android when using AES. As my file contains many pages and is > 1 MB |
Seriously this issue is abandoned. This should be a first priority |
Bug description
It opens the password less files very smoothly, but takes forever to open encrypted files on desktop (both windows and mac)
Password less file =>
Without Password.pdf
With password file =>
Encrypted File.pdf
Password for file is
2yF72KCdTvKNBiwcNj
Steps to reproduce
Simply load a pdf file with password and without password.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
https://github.com/syncfusion/flutter-widgets/assets/35301566/18b7e535-a5e8-4733-b14a-967969a4eac9Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Windows, macOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: