Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[syncfusion_flutter_pdfviewer] Unable to recognize unicode characters (pdf viewer) #2176

Open
Abdelrhman-Azab opened this issue Nov 19, 2024 · 1 comment
Labels
follow-up scheduled Follow-up scheduled pdf viewer PDF viewer component

Comments

@Abdelrhman-Azab
Copy link

Bug description

When i select ä or Ä the pdf viewer doesn't recognize it.

Steps to reproduce

  1. use the attached pdf
    test.pdf

  2. select Ä ä

  3. Print selected text

Code sample

Code sample
SizedBox(
                  child: SfPdfViewerTheme(
                    data: const SfPdfViewerThemeData(
                      backgroundColor: Colors.white,
                    ),
                    child: SfPdfViewer.memory(
                      pageLayoutMode: ratio > 0.12
                          ? PdfPageLayoutMode.continuous
                          : PdfPageLayoutMode.single,
                      key: _pdfViewerKey,
                      enableTextSelection: true,
                      canShowTextSelectionMenu: false,
                      canShowScrollHead: false,
                      interactionMode: PdfInteractionMode.pan,
                      noteFile!,
                      onTextSelectionChanged: (details) {
                        print("SELECTED TEXT ${details.selectedText}");
                      },
                    ),
                  ),
                ),

Screenshots or Video

IMG_2688
Screenshot 2024-11-19 at 7 51 23 PM
Screenshot 2024-11-19 at 7 51 35 PM

Stack Traces

Stack Traces
no stack trace is available

On which target platforms have you observed this bug?

iOS

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0 24A335 darwin-arm64 (Rosetta), locale en-EG)
    • Flutter version 3.24.3 on channel stable at /Users/abdelrhmansayed/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (10 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/abdelrhmansayed/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • ANDROID_HOME = /Users/abdelrhmansayed/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.95.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.100.0

[✓] Connected device (5 available)
    • Abdelrhman’s iPhone (mobile)    • 00008120-00012D292190C01E            • ios            • iOS 18.1 22B83
    • iPhone 16 Pro (mobile)          • 397B1B57-9A90-488A-8826-8DD0E5B5E016 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.0 24A335
      darwin-arm64 (Rosetta)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.0 24A335
      darwin-arm64 (Rosetta)
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome
      131.0.6778.70

[✓] Network resources
    • All expected network resources are available.

• No issues found!```

</details>
@Abdelrhman-Azab Abdelrhman-Azab changed the title Unable to recognize unicode characters (pdf viewer) [syncfusion_flutter_pdfviewer] Unable to recognize unicode characters (pdf viewer) Nov 19, 2024
@KrithigaPerumal
Copy link

Hi @Abdelrhman-Azab,

We are able to replicate the issue, where the Unicode characters in the PDF are not recognized when it is selected in the Syncfusion Flutter PDF Viewer. We are currently validating this issue, and we will provide further details once we find the root cause of the issue.

Regards,
Krithiga Perumal.

@VijayakumarMariappan VijayakumarMariappan added pdf viewer PDF viewer component follow-up scheduled Follow-up scheduled labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
follow-up scheduled Follow-up scheduled pdf viewer PDF viewer component
Projects
None yet
Development

No branches or pull requests

3 participants