#1280 print: ignore undecodable pages

This commit is contained in:
Thibault Deckers 2024-11-12 18:58:41 +01:00
parent d83537f774
commit e7ec41b8d5
2 changed files with 28 additions and 14 deletions

View file

@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
## <a id="unreleased"></a>[Unreleased] ## <a id="unreleased"></a>[Unreleased]
### Changed
- Albums: improved album creation feedback
### Fixed
- crash when playing video with DCL restriction enabled
- printing multi-page items containing some unprintable pages
- English (Shavian) locale tags for store listing
## <a id="v1.11.17"></a>[v1.11.17] - 2024-10-30 ## <a id="v1.11.17"></a>[v1.11.17] - 2024-10-30
### Added ### Added

View file

@ -105,6 +105,7 @@ class EntryPrinter with FeedbackMixin {
} }
Future<pdf.Widget?> _buildPageImage(AvesEntry entry) async { Future<pdf.Widget?> _buildPageImage(AvesEntry entry) async {
try {
if (entry.isSvg) { if (entry.isSvg) {
final data = await mediaFetchService.getSvg( final data = await mediaFetchService.getSvg(
entry.uri, entry.uri,
@ -123,6 +124,9 @@ class EntryPrinter with FeedbackMixin {
fit: _fit, fit: _fit,
); );
} }
} catch (error) {
debugPrint('failed to load image for entry=$entry, error=$error');
}
return null; return null;
} }
} }