I've implemented sfPdfViewer and works fine, except with some particular pdf produced by a converter from PCL5 to PDF that comes from AS400 environment.
Trying to select text from some of these pdf, in debug I get this error:
════════ Exception caught by gesture library ═══════════════════════════════════The following IndexError was thrown while dispatching a pointer event:RangeError (index): Index out of range: no indices are valid: 0When the exception was thrown, this was the stackdart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49 throw_dart-sdk/lib/_internal/js_dev_runtime/private/js_array.dart 581:7 _get]packages/syncfusion_flutter_pdf/src/pdf/implementation/exporting/pdf_text_extractor/image_renderer.dart 658:40 [_renderTextElementWithLeading]packages/syncfusion_flutter_pdf/src/pdf/implementation/exporting/pdf_text_extractor/image_renderer.dart 327:17 [_renderAsImage]packages/syncfusion_flutter_pdf/src/pdf/implementation/exporting/pdf_text_extractor/pdf_text_extractor.dart 279:13 [_getTextLine]...Event: PointerHoverEvent#48320(position: Offset(1366.7, 326.6)) position: Offset(1366.7, 326.6)Target: RenderMouseRegion#79d36 relayoutBoundary=up6 parentData: <none> (can use size) constraints: BoxConstraints(unconstrained) size: Size(593.3, 541.3) listeners: hover cursor: SystemMouseCursor(basic)════════════════════════════════════════════════════════════════════════════════════════ Exception caught by gesture library ═══════════════════════════════════RangeError (index): Index out of range: no indices are valid: 0════════════════════════════════════════════════════════════════════════════════
The text does not be selected and when the issue is in webapp (not debug) the web app is freezed, because the "Index out of range..." error is reiterated many times.
As attachment, there's one of these pdf that produce the error.
Many thanks for your support.
Regards,
Peter
The reported issue "Exception on text selection in online environment with certain Pdf" has been confirmed as a bug. The issue will be addressed in our upcoming weekly release, which is scheduled for delivery on August 17, 2021.
Many many thanks. I tried with the latest version v19.2.56 and everything works fine.
Many compliments for your awesome plugins and the efficient support.
Regards
Peter