4 ms·
I really wish there was a way to view and edit pdf from the terminal vim style.
by daft_pink 2y ago
I really wish there was a way to view and edit pdf from the terminal vim style.
- dirkt 2y agoYou can decompress the streams with mutool and edit the Postscript-like code in any editor, if you want. (That doesn't help a lot with editing text, of course...)
- layer8 2y agoThe PDF format isn’t really designed for editing. For viewing, there’s pdftotext [0] or ebook-convert [1]. [0] https://manpages.debian.org/poppler-utils/pdftotext.1.html https://manpages.debian.org/poppler-utils/pdftotext.1.html [1] https://manpages.debian.org/calibre/ebook-convert.1.html https://manpages.debian.org/calibre/ebook-convert.1.html
- ttyprintk 2y agoYou’re better off converting to markdown with docling or markupsafe. But, if you’re careful, Qpdf offers an intermediate document format, like pandoc, but pandoc doesn’t read PDF.
- s-emanuilov 2y agoMonkt.com offers an online version (no setup or configuration) for docling. Additionally, it has a few extra extraction methods. It could be tested for conversion to markdown.
- deleted 2y ago[deleted]