Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add PDF screenshot generation and display #995

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

AhmadMuj
Copy link
Contributor

@AhmadMuj AhmadMuj commented Feb 8, 2025

  • Add PDF to image conversion using pdf2pic library
  • Install graphicsmagick and ghostscript dependencies
  • Generate and store PDF screenshots during preprocessing
  • Add screenshot display support for web and mobile apps
  • Add missing PDF screenshot generation via tidyAssets worker
  • Update pdf2json to 3.1.5 for better parsing and removed old commits about the incorrect typing

This change improves PDF preview performance by generating and displaying static screenshots instead of loading full PDFs.
A fallback to PDF iframe display is maintained when screenshots are unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant