Pymupdf4llm CLI

It would be great to have a CLI wrapper around. The usage I have in mind is to take pdfs and convert them to markdown and then feed them manually as context.

Hi sahvtsl!
Can you explain more about what you mean by a “CLI wrapper” in this context?

Hi Jamie, what I meant was a command line interface. I use:
pymupdf … -gettext …

to convert pdf to txt

The docs don’t say if I can invoke pymupdf4llm module on the command line.

Thanks,
Avneesh

Aha! Got it thanks - so the way we use PyMuPDF directly on the CLI like this: Command line interface - PyMuPDF 1.26.3 documentation but for PyMuPDF4LLM - got it!
@HaraldLieder might have ideas around this so let’s see if he has any ideas here!

Hi all, yes, that is a gap currently. One of the many things we have on our list of improvements …