Skip to content

Problems with Flutter web PDF rendering #2263

Closed
@gianlucainnocente

Description

@gianlucainnocente

Bug description

With some PDF, the viewer is not rendering well.
You can try using attached pdf.

I also attached two screenshots:

  • using flutter web
  • using a simple pdf viewer (is ok using mac, chrome viewer, windows viewer, etc)

Image
Image

modulo.pdf

Steps to reproduce

  1. Create a simple Flutter web app with the following widget:

SfPdfViewer.network( 'PASTE HERE PDF URL', );

Code sample

Code sample
SfPdfViewer.network(
          'PASTE HERE PDF URL',
);

Screenshots or Video

Screenshots / Video demonstration

modulo.pdf

Image
Image

Stack Traces

Stack Traces

No errors or stack traces

On which target platforms have you observed this bug?

Web

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1.1 24B2091 darwin-arm64, locale it-IT)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.4)
[✓] VS Code (version 1.96.4)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for iPhone 14 Pro (2). Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for iPhone 15 Pro. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    pdf viewerPDF viewer component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions