# Gemini: use document processing for much better PDF handling

> Source: <https://kagifeedback.org/d/6801-gemini-use-document-processing-for-much-better-pdf-handling/23>
> Published: 2026-11-05 15:06:24+00:00

[Rehan](https://kagifeedback.org/d/6801-gemini-use-document-processing-for-much-better-pdf-handling/20)

How do I do this?

1. I drag'n'drop a PDF into the chat.
2. I select Gemini 4 Astra.
3. I give a clear OCR to Markdown prompt.
4. Kagi Assistant craps itself.

Output of the "Read source" step:

No relevant content could be extracted: the attached PDF was unavailable for processing, so its text cannot be quoted verbatim.

Output of the "Contemplating" step:

Analyzing File Errors

I'm currently investigating the failure to load a specific PDF file, identified as uploads/foobar.pdf. The error message points to an issue with the document's size not meeting a minimum requirement. This seems to be the primary cause for the read failure. I plan to check the file's dimensions.

Final output:

[unreadable: The attached file foobar.pdf could not be processed by the document reader ("Min document size not reached"), so its contents are unavailable and cannot be transcribed.]
