RangeError (end): Invalid value: Not in inclusive range 0..16: 32
E/flutter (30339): #0 RangeError.checkValidRange (dart:core/errors.dart:333:9)
E/flutter (30339): #1 List.copyRange (dart:core/list.dart:209:22)/flutter (324
E/flutter (32400): #2 _PdfEncryptor._prepareKeyForEncryption
E/flutter (32400): #3 _PdfEncryptor._encryptData
package:syncfusion_flutter_pdf/…/security/pdf_encryptor.dart:1235
E/flutter (32400): #4 _PdfStream.decrypt
package:syncfusion_flutter_pdf/…/primitives/pdf_stream.dart:343
E/flutter (32400): #5 _PdfCrossTable._decrypt
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:855
E/flutter (32400): #6 _PdfCrossTable._getObject
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:616
E/flutter (32400): #7 _PdfReferenceHolder.index
package:syncfusion_flutter_pdf/…/primitives/pdf_reference_holder.dart:58
E/flutter (32400): #8 _PdfReferenceHolder._obtainObject
package:syncfusion_flutter_pdf/…/primitives/pdf_reference_holder.dart:135
E/flutter (32400): #9 _PdfReferenceHolder.object
package:syncfusion_flutter_pdf/…/primitives/pdf_reference_holder.dart:45
E/flutter (32400): #10 _PdfReferenceHolder.save
package:syncfusion_flutter_pdf/…/primitives/pdf_reference_holder.dart:127
E/flutter (32400): #11 _PdfDictionary._saveItems.
package:syncfusion_flutter_pdf/…/primitives/pdf_dictionary.dart:195
E/flutter (32400): #12 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
E/flutter (32400): #13 _PdfDictionary._saveItems
package:syncfusion_flutter_pdf/…/primitives/pdf_dictionary.dart:192
E/flutter (32400): #14 _PdfDictionary._saveDictionary
package:syncfusion_flutter_pdf/…/primitives/pdf_dictionary.dart:177
E/flutter (32400): #15 _PdfDictionary.save
package:syncfusion_flutter_pdf/…/primitives/pdf_dictionary.dart:402
E/flutter (32400): #16 _PdfCrossTable._doSaveObject
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:433
E/flutter (32400): #17 _PdfCrossTable._saveIndirectObject
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:286
E/flutter (32400): #18 _PdfCrossTable._saveObjects
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:225
E/flutter (32400): #19 _PdfCrossTable._save
package:syncfusion_flutter_pdf/…/io/pdf_cross_table.dart:155
E/flutter (32400): #20 PdfDocument._appendDocument
package:syncfusion_flutter_pdf/…/pdf_document/pdf_document.dart:608
E/flutter (32400): #21 PdfDocument.save
package:sy
SIGN IN To post a reply.
1 Reply
AP
Anand Panchamoorthi
Syncfusion Team
May 3, 2021 09:32 AM UTC
Hi Parth Pahuja,
Thanks for contacting Syncfusion support.
We were unable to reproduce the issue, “Exception thrown while parsing encrypted PDF document” in our end. We suspect that the reported issue may depends on the input PDF which you have using.
We are requesting you to provide the below details to reproduce the reporting issue and to validate further in our side. It would more helpful for us to analyze further and provide you a prompt solution.
- Simple sample to reproduce the issue.
- PDF document with which you have to reproduce the issue.
Regards,
Anand Panchamoorthi
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
PP Parth Pahuja
- May 1, 2021 08:11 AM UTC
- May 3, 2021 09:32 AM UTC