-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add PDF.js viewer for PDF files #795
Comments
Maybe? :-) Since chrome (I don't know about other browsers) already allows viewing PDFs, I don't know how much of a gain that would be. If you select a pdf permanode, then click on "view original", then you can read the PDF without any need of a 3rd party lib. Thanks for the link though. |
I think it also depends on what's the general philosophy regarding (pre-)viewing several filetypes in the Web UI. Obviously, previewing images and videos just works™ when clicking on the icon, but for .pdf or .txt files, users have to 'view original' in order to read the document. Clicking the icon only gives 'no result found', while there's a special view for images and videos. Maybe you could elaborate on whether there are plans for handling various filetypes @mpl? |
@mbrgm There are no definite/precise plans that I know of. Easy handling of common files (such as text or pdf) is definitely on the table, and how to do it is open for discussion.
|
I'd like to see PDF support, especially if it helps with thumbnails of PDFs or easier browsing of PDFs with our UI overlayed (in any browser, not just Chrome). |
Perhaps consider poppler? https://poppler.freedesktop.org/. Works on windows and unix-like systems. It includes the command line tool pdftocairo which can convert pdfs to jpegs, so could be used to create thumbnails. I use the poppler code every day to view pdfs in emacs on windows (via pdf-utils) and have yet to find a pdf it won't display but that adobe or chrome will. |
I think https://perkeep-review.googlesource.com/c/perkeep/+/19206 will address this issue. |
Would PDF.js be a conceivable addition to the Web UI? This could allow viewing PDFs just like it is already possible for images.
The text was updated successfully, but these errors were encountered: