From e5cb9aa848009ea22c1385e4d33b7edf372979fb Mon Sep 17 00:00:00 2001 From: Ahmad Mujahid <55625580+AhmadMuj@users.noreply.github.com> Date: Mon, 17 Feb 2025 13:25:16 +0400 Subject: feat: Add PDF screenshot generation and display (#995) * Updated pdf2json to 3.1.5 * Extract and store a screenshot from PDF files using pdf2pic * Installing graphicsmagick and ghostscript * Generate Missing PDF screenshot with tidyAssets worker for backward support * Display PDF screenshot instead of the PDF in web if it exists. * Display PDF screenshot in mobile app if exists. * Updated pnpm-lock.yaml * Removed console.log * Revert the unnecessary changes in package.json * Revert pnpm-lock changes * Prevent rendering PDF files if the screenshot is not generated * refactor: replace useEffect with useMemo for section initialization * feat: show PDF file download button and handle large PDFs by defaulting to screenshot view * feat: add file size to openapi spec * feature: Add Assets preprocessing in fix mode to admin actions * i18n: add reprocess_assets_fix_mode translation * i18n: Add missing ar translations * A bunch of fixes * Fix openspec schema --------- Co-authored-by: Mohamed Bassem --- apps/web/lib/i18n/locales/zh/translation.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/web/lib/i18n/locales/zh') diff --git a/apps/web/lib/i18n/locales/zh/translation.json b/apps/web/lib/i18n/locales/zh/translation.json index 84a9e17a..d798b716 100644 --- a/apps/web/lib/i18n/locales/zh/translation.json +++ b/apps/web/lib/i18n/locales/zh/translation.json @@ -175,7 +175,8 @@ "regenerate_ai_tags_for_failed_bookmarks_only": "仅为失败书签重新生成AI标签", "regenerate_ai_tags_for_all_bookmarks": "为所有书签重新生成AI标签", "reindex_all_bookmarks": "重新索引所有书签", - "compact_assets": "压缩资产" + "compact_assets": "压缩资产", + "reprocess_assets_fix_mode": "重新处理资产(固定模式)" }, "users_list": { "users_list": "用户列表", -- cgit v1.2.3-70-g09d2