syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.56k stars 761 forks source link

SfPdfViewer.memory not open protected PDF #1948

Closed gustavorozolin closed 2 months ago

gustavorozolin commented 3 months ago

Bug description

I'm trying show a preview pdf in my flutter app at MacOS but it not open my PDF, if I download e use the same password its word for me

Steps to reproduce

Just try open the file in app using its password

Code sample

Code sample ```dart SfPdfViewer.memory(file, password: widget.password)) ```

Screenshots or Video

Screenshots / Video demonstration Screenshot 2024-06-25 at 11 04 37

Stack Traces

Stack Traces ```dart Dont got any error ```

On which target platforms have you observed this bug?

Android, Windows, macOS

Flutter Doctor output

Doctor output ```console g@g-MacBook-Pro ~ % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] IntelliJ IDEA Community Edition (version 2024.1.4) [✓] VS Code (version 1.88.1) [✓] Connected device (3 available) ! Error: Browsing on the local area network for Gustavo Rozolin’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • No issues found! g@g-MacBook-Pro ~ % ```
immankumarsync commented 3 months ago

Hi @gustavorozolin, We are unable to replicate the reported issue, and the encrypted document is loading properly in the SfPdfViewer.memory widget. Please see the attached screenshot below. image

To help us analyze the issue further and provide you with a prompt solution, please share the following information:

  1. The PDF document in which the issue occurs.
  2. Detailed steps to replicate the issue, including a replication video if possible.
  3. A simple sample project where the issue can be reproduced.
gustavorozolin commented 3 months ago

@immankumarsync I can't publish the PDF, as it contains sensitive data from my client, is there any other way I can send it to you? Thanks.

immankumarsync commented 3 months ago

@gustavorozolin, If you feel the document should not be shared publicly here, you can create a ticket in our support portal and share the details and the document there. We will check and revert soon.

Deepak1799 commented 2 months ago

@gustavorozolin As we have not heard back from you regarding the details shared in our last update, we are closing this issue. As we mentioned, you can create a ticket in our support portal for the requested details.