Gemini: use document processing for much better PDF handling A Kagi Assistant user reported that uploading a PDF, selecting Gemini 4 Astra, and requesting OCR-to-Markdown conversion failed, with the tool returning "Min document size not reached" and no transcribed content. The failure surfaced in Kagi's feedback forum, where the user asked how to get document processing to handle PDFs properly. 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.