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

Consider using pdf.js for PDF thumbnail generation, or even just use a generic icon instead. #7480

Open
sengi opened this issue Mar 23, 2023 · 0 comments

Comments

@sengi
Copy link
Contributor

sengi commented Mar 23, 2023

Whitehall currently uses Ghostscript to generate thumbnail icons for PDF attachments.

It's not clear whether this is even a useful feature (since most document cover pages look very similar and the thumbnail is too small for text to be readable), but if we want to keep generating these thumbnails then it's worth considering switching from Ghostscript to pdf.js to reduce the attack surface.

Ghostscript is 70+ MB of old code, mostly written in C, whereas pdf.js is way smaller and designed for security from the beginning.

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

No branches or pull requests

1 participant