-
Notifications
You must be signed in to change notification settings - Fork 872
Closed
Labels
pdf viewerPDF viewer componentPDF viewer componentwaiting for customer responseCannot make further progress until the customer responds.Cannot make further progress until the customer responds.
Description
Bug description
Environment
- Flutter version: 3.32.5
- syncfusion_flutter_pdfviewer version: 30.1.39
- syncfusion_flutter_pdf version: 30.1.39
- Platform: Android 10
Expected Behavior
The PDF should load and display correctly after entering the correct password in the dialog.
Actual Behavior
- Password dialog appears correctly
- After entering the correct password, the viewer shows a blank page
- Error description : there was an error opening this document
Additional Context
- The same PDF can be opened in other PDF viewers with the same password
- The encryption and password protection are confirmed working as the PDF requires a password in other viewers
Steps to reproduce
- Encrypt Pdf File.
- Open using syncfusion pdf viewer
Code sample
Code sample
body: SfPdfViewer.file(
File(widget.pdfFile!),
key: ValueKey(widget.pdfFile),
onDocumentLoadFailed: (PdfDocumentLoadFailedDetails details) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text('Error: ${details.error}')),
);
print(details.description);
print(details.error);
},
onDocumentLoaded: (PdfDocumentLoadedDetails details) {
print(
'PDF loaded successfully: ${details.document.pages.count} pages');
},
),
Screenshots or Video
Stack Traces
Stack Traces
+639 ms] D/ProfileInstaller(17461): Installing profile for com.easypdf.android
[+5875 ms] I/flutter (17461): The provided `password` property is empty so unable to load the encrypted document.
[ +1 ms] I/flutter (17461): Empty Password Error
[+1034 ms] D/ImeFocusController(17461): onViewFocusChanged, view=io.flutter.embedding.android.FlutterView{e627402 VFE...... .F...... 0,0-1080,2340 #1},
mServedView=DecorView@5a0299b[MainActivity]
[ +1 ms] V/ImeFocusController(17461): checkFocus: view=DecorView@5a0299b[MainActivity] next=io.flutter.embedding.android.FlutterView{e627402 VFE...... .F....ID 0,0-1080,2340 #1}
force=false package=com.easypdf.android
[ +81 ms] D/InputConnectionAdaptor(17461): The input method toggled cursor monitoring on
[ +95 ms] D/InsetsController(17461): show(ime(), fromIme=true)
[ +13 ms] D/InsetsController(17461): show(ime(), fromIme=true)
[+8748 ms] I/flutter (17461): There was an error opening this document.
[ +1 ms] I/flutter (17461): Error
[ +153 ms] D/InputConnectionAdaptor(17461): The input method toggled cursor monitoring off
[+4038 ms] I/AssistStructure(17461): Flattened final assist data: 468 bytes, containing 1 windows, 3 views
[ +5 ms] D/InputConnectionAdaptor(17461): The input method toggled cursor monitoring on
[ +11 ms] D/InsetsController(17461): show(ime(), fromIme=true)
On which target platforms have you observed this bug?
Android
Flutter Doctor output
Doctor output
PS D:\development\Easy-Pdf\easy_pdf> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.32.5, on Microsoft Windows [Version 10.0.19045.6093], locale en-PK)
[√] Windows Version (10 Pro 64-bit, 22H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.14.7)
[√] Android Studio (version 2024.3)
[√] VS Code (version 1.101.2)
[√] Connected device (4 available)
[√] Network resources
• No issues found!
Metadata
Metadata
Assignees
Labels
pdf viewerPDF viewer componentPDF viewer componentwaiting for customer responseCannot make further progress until the customer responds.Cannot make further progress until the customer responds.