You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
Receiving error when a user inputs an incorrect password to a protected pdf file. Version used: 0.5.9
Error
PlatformException(pdfDecryption_exception, com.itextpdf.kernel.exceptions.BadPasswordException: Bad user password. Password is not provided or wrong password provided. Correct password should be passed to PdfReader constructor with properties. See ReaderProperties#setPassword() method.
I/flutter ( 9272): at com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40.checkPassword(StandardHandlerUsingStandard40.java:214)
I/flutter ( 9272): at com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40.initKeyAndReadDictionary(StandardHandlerUsingStandard40.java:198)
I/flutter ( 9272): at com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard40.<init>(StandardHandlerUsingStandard40.java:81)
I/flutter ( 9272): at com.itextpdf.kernel.crypto.securityhandler.StandardHandlerUsingStandard128.<init>(StandardHandlerUsingStandard128.java:60)
I/flutter ( 9272): at com.itextpdf.kernel.pdf.PdfEncryption.<init>(PdfEncryption.java:235)
I/flutter ( 9272): at com.itextpdf.kernel.pdf.PdfReader.readDecryptObj(PdfReader.java:1406)
I/flutter ( 9272): at com.itextpdf.kernel.pdf.PdfReader.readPdf(PdfReader.java
I/flutter ( 9272): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
I/flutter ( 9272): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
I/flutter ( 9272): <asynchronous suspension>
I/flutter ( 9272): #2 MethodChannelPdfManipulator.pdfDecryption (package:pdf_manipulator/src/pdf_manipulator_method_channel.dart:107:26)
I/flutter ( 9272): <asynchronous suspension>
I/flutter ( 9272): #3 _EnterPasswordDialogState.build.<anonymous closure> (package:scanclan/Components/myDialogs/my_custom_dialog.dart:1707:21)
I/flutter ( 9272): <asynchronous suspension>
I/flutter ( 9272): ----------------------------------------------------
Steps to reproduce the behavior in the code:
Just open any protected pdf whose password is not 'userpw', in the example project of the package.
Expected behavior
Instead of throwing an error, we should receive information if password entered was incorrect. Throwing an error is not good practice for production apps.
Please look into this.
The text was updated successfully, but these errors were encountered:
Bug Description
Receiving error when a user inputs an incorrect password to a protected pdf file. Version used: 0.5.9
Error
Steps to reproduce the behavior in the code:
Just open any protected pdf whose password is not 'userpw', in the example project of the package.
Expected behavior
Instead of throwing an error, we should receive information if password entered was incorrect. Throwing an error is not good practice for production apps.
Please look into this.
The text was updated successfully, but these errors were encountered: