Skip to content

❗️Issue: PDF not displaying in release mode on Flutter 3.32 (works in debug) #1853

@ebm2243

Description

@ebm2243

After upgrading to Flutter SDK 3.32.0, PDF generation using the printing package (^5.14.2) stopped working in release mode on Android. The same code works perfectly in debug mode and with earlier Flutter versions like 3.29.0. When running in release, the app shows the error PDF Error: Unable to display the document, without crashing or throwing any exceptions. I've confirmed this happens even with a minimal example using pdf.Document() and Printing.layoutPdf(). No ProGuard rules are added manually, and all permissions are correctly set. This seems to be a regression or compatibility issue introduced in Flutter 3.32. Please investigate or guide if any changes are required in the plugin or build configuration to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions