The usual way to ask a PDF a question is to upload it first. The file goes to a server, a large model reads it, and an answer comes back. It works well, which is exactly why the upload step is easy to stop noticing. For a tax return, a lease, a medical letter or a signed contract, the upload is the most sensitive part of the whole interaction.
On-device document chat reverses that order. The text is pulled out on the phone, the relevant passages are found on the phone, and a small model on the phone writes the answer. Nothing about the document leaves the device. This post is about what that is good for, what it is not, and how to tell the difference before you trust it with something that matters.
What does chatting with a PDF offline actually mean?
Chatting with a PDF offline means three jobs run locally instead of on a server:
- Reading the document. A digital PDF already has a text layer; a scan does not, so it is recognised with on-device OCR first.
- Finding the right pages. The document is split into page-sized chunks and ranked against your question, so the model gets the relevant passages rather than the whole file.
- Writing the answer. A language model that runs on the phone reads those passages and answers, citing the page it used.
In ScanLocker, this is the Ask this document action on the document detail screen and the chat icon in the PDF preview. It is free for everyone (no Pro purchase, no question counter) because there is no per-query cost to recover: the inference happens on your hardware.
Can you chat with a PDF offline?
Yes, with one qualification. The first use needs a network connection to download the model (533 MB, once). After that, the assistant works in airplane mode: no account, no document server and no cloud fallback.
The qualification is the model, not the document. A local model is smaller than the ones behind cloud PDF tools, so it is better at “what is the total on this receipt?” than at “compare the termination clauses across these five contracts”. That trade is the subject of the rest of this page.
How does on-device PDF chat work?
The pipeline is deliberately boring, because every step you can inspect is a step that cannot quietly upload something:
- Extract. Digital PDFs are read page by page from the embedded text layer. Scans are recognised with the OCR engine already used for searchable PDFs. See how on-device OCR works.
- Chunk. The text is cut into roughly page-sized pieces with a small overlap, so a sentence that crosses a page break is not lost.
- Retrieve. Your question is matched against those chunks with BM25, a ranking method from information retrieval. Dates and amounts get a fallback pass, because asking “what are the key dates?” on a contract rarely matches the word “dates”.
- Answer. The top passages are placed in a prompt that instructs the model to answer only from them, cite pages as
[Page N], and say “I couldn’t find that in this document” when the answer is absent.
The retrieval step is why a 0.8B model can answer questions about a 40-page PDF at all. The model never sees the whole document; it sees the few pages that matter, plus your question.
What can you ask a document?
Useful questions are the ones whose answer is written down somewhere on one or two pages:
- Contracts and leases: “What is the notice period?”, “Who are the parties?”, “What is the renewal date?”, “Is there a break clause?”
- Receipts and invoices: “What is the total?”, “What is the invoice number?”, “What date was this issued?”, “How much tax was charged?”
- Medical and insurance letters: “What is the reference number?”, “What is the appointment date?”, “What does the letter ask me to do?”
- Anything long: “Summarise this document”: the app offers this as the first suggestion, then derives follow-up questions from the answer.
The answer streams in with a Stop button, and the cited pages appear as chips you can tap to open the page in the PDF. If you only remember one habit from this post, make it that one: read the cited page. It is the difference between using the assistant and believing it.
What is it not good at?
An honest list, because the failure modes are predictable:
- Dense tables and forms. A receipt with five fields is fine. A bank statement with six columns is not. The text layer loses the column relationship, and a small model reconstructs it badly.
- Handwriting. OCR handles printed text well and handwriting poorly; a scrawled note may have no usable text layer at all.
- Charts, diagrams and stamps. The model reads text, not images. A figure that only exists as pixels is invisible to it.
- Multi-document questions. One document at a time. “Which of these three quotes is cheapest?” needs three chats and a human.
- Long reasoning chains and arithmetic. It can find a total; it should not be trusted to recompute a tax return.
When the passages do not contain the answer, the app says so. That refusal is a feature: a model that always produces an answer is a model you cannot use for a document that matters.
Is it private? What actually leaves the phone?
Three things happen over the network, and only one of them is part of a chat:
- The model download. The 533 MB file comes from Hugging Face today (Apache-2.0, checksum-verified, resumable). That request carries your IP address and basic device information, exactly as any download does. See the privacy policy, section 4.1.
- Consent-gated analytics. Counts and error codes, never document text, questions, answers, file names or tags.
- Nothing else during a session. No prompt, no excerpt and no answer is sent anywhere. You can prove it by putting the phone in airplane mode after the download and asking a question.
The rest is local by construction:
- Chat history is session-only and cleared when you close the chat or leave the app. It is not written to a database, not synced and not backed up.
- A password-protected PDF is unlocked for the session and processed in memory. No chat index is written to disk, the password is not stored, and the session is cleared on background.
- The document itself lives in the app-private vault, which is why a scanner can offer this at all. See where scanned PDFs are stored.
What do you need to run it?
- A one-time 533 MB download. The app refuses to start the download without enough free disk space, supports resume, and verifies the checksum before using the file.
- Enough memory. The app checks headroom before loading the weights and refuses gracefully rather than crashing. On the reference test device the peak footprint was around 320 MB for the 533 MB file, because the weights are memory-mapped.
- An arm64 phone. The engine is native code; devices it cannot support get a clear message instead of a hang.
- No subscription. The assistant is free in ScanLocker. The free tier still shows ads elsewhere in the app; the chat screen itself carries none.
You can delete the model at any time in Settings → AI Assistant, and the app remains a normal scanner without it.
How do you use it in ScanLocker?
- Open a document from the library, or open its PDF preview.
- Tap Ask this document (or the chat icon in the preview toolbar).
- On first use, confirm the model download. Wi-Fi is recommended for 533 MB.
- Ask a question, or take the Summarise this document suggestion. Follow-up suggestions appear after the first answer.
- Tap a page chip to check the citation. Use Stop if the answer is going somewhere unhelpful.
There is no setup screen to configure and no key to paste. If the document is a protected PDF, unlock it once for the session; the chat never writes the password down.
Offline PDF chat vs cloud PDF chat
| Cloud PDF chat (ChatPDF, Adobe AI Assistant) | ScanLocker on-device chat | |
|---|---|---|
| Document upload | Required | Never |
| Account | Usually required | None |
| Works offline | No | Yes, after the model download |
| Page citations | Varies by tool | Yes, tappable page chips |
| Model size | Large, server-side | 0.8B, on the phone |
| Cost | Free tier with page or document caps, then a subscription | Free, no question counter |
| Best at | Long reasoning, multi-document work, complex tables | Private documents, scans, offline use, quick extraction |
The cloud column is not a strawman. A frontier model is genuinely better at reading a messy table or comparing several documents, and if the file is a public research paper, uploading it costs you little. The on-device column wins when the document is the reason you bought a scanner in the first place.
Who is this for?
- Anyone scanning identity or financial documents. A passport, a payslip or a tax notice is exactly the file you should not hand to a free upload tool to ask one question.
- Field and site work. Basements, warehouses, flights and rural sites do not have reliable connectivity; a downloaded model does not care.
- Students and researchers who want to interrogate a PDF without creating another account, subject to the model-size trade above.
- Small businesses that need a total or a date out of a receipt without sending the receipt to a third party.
If your documents are already public, a cloud assistant is a reasonable choice. If they are the reason you care about local storage in the first place, local chat is the version that keeps the promise.
Related reading
- On-device OCR: searchable PDFs without a server: how the text gets out of a scan in the first place.
- Where scanned PDFs are actually stored on Android: the vault the assistant reads from.
- How to password-protect a PDF on Android, and what changes when a protected file is opened for chat.
- The best document scanner apps for Android in 2027: where OCR and AI run changes the comparison.
- CamScanner alternatives that scan on the phone: the same on-device argument, app by app.