this post was submitted on 21 Apr 2024
35 points (97.3% liked)
Linux
48061 readers
707 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think Evince and Atril have a setting for that? Or was it mupdf? Else you could script something with
inotifywait
orwatch
.Btw, just googled it,
less
automatically uses lesspipe with pdftotext, sowatch -n 2 less your.pdf
works. Then there'sfbpdf
andfbgs
offbi
.Could you explain? less would just monitor the binary PDF for changes and then pass that to any viewer?
I think this is really helpful for barebones renderers, thanks! That will be a very good piece of the puzzle for a minimal PDF reader for this task
No, less has the LESSOPEN variable, which can be used to run input-preprocessors. lesspipe misuses that to run specific tools with specific mimetypes, in this case pdftotext for pdf files. It's basically equivalent to running
pdftotext -layout <file.pdf> | less
. Though no images, for that the other tools.