Open electronicoit opened 5 months ago
Tested with two different versions of pre-compiled PDFium, 5200 and 6555. The same problem is present in both cases.
pubspec.yaml
environment: sdk: '>=3.3.0 <4.0.0'
dependencies: flutter: sdk: flutter
cupertino_icons: ^1.0.6 go_router: ^14.1.4 intl: ^0.19.0 uuid: ^4.3.2 data_table_2: ^2.5.11 provider: ^6.1.2 email_validator: ^2.1.16 path_provider: ^2.1.3 qr_flutter: ^4.1.0 image_picker: ^1.1.2 mobile_scanner: ^5.1.1 pdf: ^3.10.8 printing: ^5.12.0
dev_dependencies: flutter_test: sdk: flutter integration_test: sdk: flutter
flutter_lints: ^4.0.0
flutter: uses-material-design: true
Describe the bug When using the Printing package, its PDF preview is almost never presented on Linux; a white page is shown instead. Sometimes, after playing around with on-screen controls (page orientation, page format, debug guidelines), the actual content of the page is shown. But, if one keeps playing with the controls or window size, it disappears again.
Always on Linux, and with any project. Even with: https://github.com/DavBfr/dart_pdf/tree/master/printing/example
If I modify the code so that the generated PDF is written to disk and then loaded, the same happens.
If I modify the example for showing any PDF on my disk, the same happens unless it's a multi-page PDF. In this case, only the first page is shown but the rest remains empty (white).
Also, the Share button presents a 'Document Viewer' window with no icons on all buttons; only a red cancel/error/not-found icon.
To Reproduce Code snippet to reproduce the behavior:
Expected behavior The full PDF is shown on every occasion.
Screenshots When it does not work (the usual):
When it does work (sometimes after playing with the controls):
Flutter Doctor
Desktop (please complete the following information):
Smartphone (please complete the following information): No
Additional context N/A