fix(sign-pdf): surface PDF load failures instead of a blank canvas (#545)

A genuine pdf.js load failure (corrupt or password-protected file) was swallowed by the same catch that silences teardown rejections, leaving a blank canvas that looks like it is still loading. The two cases are now distinguished by the load effect's cancelled flag, and a real failure renders a clear message pointing at Unlock PDF for encrypted files. New loadFailed string in all 21 locales.

Item 4 of #478.
This commit is contained in:
SnapOtter
2026-07-17 00:36:48 +08:00
committed by GitHub
parent c8629c9d22
commit 1f4878ac4d
24 changed files with 88 additions and 3 deletions
+2
View File
@@ -2812,6 +2812,8 @@ export const ru: TranslationKeys = {
signingPercent: "Подписание… {percent}%",
downloadSigned: "Скачать подписанный PDF",
addFirst: "Добавьте хотя бы одну подпись перед скачиванием.",
loadFailed:
"Не удалось отобразить этот PDF. Файл может быть повреждён или защищён паролем; если он зашифрован, сначала удалите пароль с помощью инструмента «Разблокировать PDF».",
pad: {
title: "Создать подпись",
draw: "Нарисовать",