17 comments

[ 2.5 ms ] story [ 54.2 ms ] thread
It would be cool if it could also do “LLM style” operations, like summarizing or extracting key points of the documents
not really, very out of scope IMO
If you really have to "mutool draw -F txt somefile.pdf" will extract the text contents, that you can then pipe to a LLM.
how will it handle things like tables let me try
I really wish there was a way to view and edit pdf from the terminal vim style.
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...)
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.
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.
(comment deleted)
If this is using MuPDF, beware that they are very rude and assume ill will! See https://news.ycombinator.com/item?id=40096211
That comment you linked to is yours, and flagged.

It reads to me like you are still carrying a grudge about one rude interaction. I read that whole thread and I don't want to see it repeated here.

This is not a very good link to post - it's a manpage.

A better link (from the developer's git repository):

https://mupdf.readthedocs.io/en/latest/mupdf-command-line.ht...

Source for mutool:

https://github.com/ArtifexSoftware/mupdf/blob/master/source/...

It's ok, but some less used features have undocumented regressions.