←back to thread

43 points rahimnathwani | 6 comments | | HN request time: 0.001s | source | bottom
1. daft_pink ◴[] No.42910457[source]
I really wish there was a way to view and edit pdf from the terminal vim style.
replies(3): >>42910715 #>>42913700 #>>42915137 #
2. dirkt ◴[] No.42910715[source]
You 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...)
3. layer8 ◴[] No.42913700[source]
The 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

[1] https://manpages.debian.org/calibre/ebook-convert.1.html

4. ttyprintk ◴[] No.42915137[source]
You’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.
replies(2): >>42915339 #>>42915345 #
5. s-emanuilov ◴[] No.42915339[source]
Monkt.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.
6. ◴[] No.42915345[source]