aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/package.json
diff options
context:
space:
mode:
authorAhmad Mujahid <55625580+AhmadMuj@users.noreply.github.com>2025-02-17 13:25:16 +0400
committerGitHub <noreply@github.com>2025-02-17 09:25:16 +0000
commite5cb9aa848009ea22c1385e4d33b7edf372979fb (patch)
tree89470d8da8aab10f30bbfccea8d1b0cea08a1408 /apps/workers/package.json
parenta14be108736133535e2828b6bbdc8d0a69accd63 (diff)
downloadkarakeep-e5cb9aa848009ea22c1385e4d33b7edf372979fb.tar.zst
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 <me@mbassem.com>
Diffstat (limited to 'apps/workers/package.json')
-rw-r--r--apps/workers/package.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/workers/package.json b/apps/workers/package.json
index ebcae757..122c7cb1 100644
--- a/apps/workers/package.json
+++ b/apps/workers/package.json
@@ -30,7 +30,8 @@
"metascraper-url": "^5.45.22",
"node-cron": "^3.0.3",
"node-fetch": "^3.3.2",
- "pdf2json": "^3.0.5",
+ "pdf2json": "^3.1.5",
+ "pdf2pic": "^3.1.3",
"pdfjs-dist": "^4.0.379",
"puppeteer": "^22.0.0",
"puppeteer-extra": "^3.3.6",
@@ -65,4 +66,4 @@
]
},
"prettier": "@hoarder/prettier-config"
-}
+} \ No newline at end of file