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

I can help add pdf preview support #231

Open
jcguu95 opened this issue Apr 29, 2021 · 0 comments
Open

I can help add pdf preview support #231

jcguu95 opened this issue Apr 29, 2021 · 0 comments

Comments

@jcguu95
Copy link

jcguu95 commented Apr 29, 2021

I can help add pdf preview support, if no one is working on it.

Here's the idea.

  1. Hack ranger-preview-buffer.
  2. Add a condition for pdf files.
  3. In that condition, generate a cache image that shows the first page of the pdf by running pdftoppm -f 1 -l 1 -scale-to-x 600 -scale-to-y -1 -singlefile -jpeg -tiffcompression jpeg -- "/path/to/pdf.pdf" "/tmp/cache.jpeg". (Code taken from here)
  4. Preview that image.
@jcguu95 jcguu95 changed the title I can help adding pdf preview support I can help add pdf preview support Apr 29, 2021
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