> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# parsing_pymupdf

> Parse documents using PyMuPDF for fast processing of PDFs and e-books

Parse the data provided by the loader using [PyMuPDF][pymupdf].

PyMuPDF is a faster, simpler document parser that:

* Processes PDF documents with basic structure preservation
* Supports e-book formats like EPUB and MOBI
* Is generally faster than docling for simpler documents
* Works well for documents with straightforward layouts

Choose pymupdf when processing speed is more important than perfect structure preservation.

## Samples

```sql theme={"dark"}
SELECT ai.create_vectorizer(
    'my_table'::regclass,
    parsing => ai.parsing_pymupdf(),
    -- other parameters...
);
```

## Arguments

This function takes no arguments.

## Returns

A JSON configuration object that you can use in `ai.create_vectorizer`.

[pymupdf]: https://pymupdf.readthedocs.io/en/latest/
