Control over AI
Blog
AI data leakage 8 min read

What happens when you upload a PDF to a chatbot?

Step by step, from the moment you drop the file to the moment a summary appears. And why "I only asked it to summarise" describes your request, not your transmission.

Someone dragging a PDF into an AI assistant
Quick answer

The entire file goes to the provider's servers. There the text layer is extracted, split into chunks and appended to the conversation, along with whatever metadata rides along. From that point the contents are ordinary conversation text: it counts against the context window, it lands in your history, and it inherits the same retention as anything you typed. Scanned PDFs behave differently: with no text layer there is nothing to read unless the service applies character recognition. "I only asked for a summary" describes what you requested, not what you sent.

01

The whole file is transmitted, not just the part the task needs

02

The text layer is extracted and appended to the conversation as plain text

03

Metadata such as author and file path can travel without being visible

04

Comments and tracked changes exported into the PDF go with it

05

Summarising is not a smaller or safer operation on the input side

A policy adviser drops a forty-page draft report into a chat window and asks for a half-page summary. What they need is the conclusion. What they sent is forty pages, three annexes with names in them, and two colleagues' unresolved margin comments.

That gap does not come from carelessness. It comes from an action that looks nothing like what it does.

Step 1: the file leaves your machine

The moment you release the file, the complete file uploads to the provider's servers. Not an extract, not a portion: the bytes as they sat on your disk.

This is the point at which the data leaves your organisation. Everything after this happens on the other side of that line.

Step 2: the text layer is extracted

A PDF is not a text file. It is a set of drawing instructions for a page, usually accompanied by a text layer recording which characters sit where.

The service reads that layer. What comes out is not always what you see on screen:

  • Text under images. If someone drew a black rectangle over a name, the name is still in the text layer. See why a black box over text is not redaction.
  • Footnotes, headers, annexes. Everything in the document, including the parts you had not read.
  • Comments and tracked changes. Exported from Word without clearing them first, they come along.
  • Metadata. Author name, organisation, creation date, producing software, and sometimes the full path of the machine the document was authored on.

Scanned PDFs work differently. With no text layer, the page is an image. Some services apply optical character recognition automatically and process it as text anyway; others report they cannot read it. Treating a scan as inherently unreadable is not a safe assumption.

Step 3: the text is chunked into the conversation

The extracted text is split into chunks and appended to the conversation. From then on there is no distinction between "text you typed" and "text from a file". It is all conversation text.

Two consequences people rarely anticipate.

First: the contents count against the context window. A forty-page document consumes a substantial share of the available room, leaving less for the exchange that follows.

Second: the contents are re-transmitted with every subsequent turn in that conversation. Ask five follow-up questions and the document is sent to the model five more times.

Step 4: it persists

The uploaded file and the extracted text land in your conversation history. The ordinary rules of the service then apply: retention, the possibility of human review on suspicion of abuse, and on a consumer account, use for training by default.

Many services also retain the original file separately, linked to the conversation, so you can retrieve it later. Deleting the conversation usually takes the file with it, though not always immediately. How those layers behave is covered in what a chat history actually is.

Why "just summarising" is not a thing

This is the heart of the misunderstanding, and it is an understandable one.

In your head, summarising is a small task: you are asking for little, so you are giving little. Technically it inverts. To summarise, the model has to see the whole thing. The brevity lives in the output, never in the input.

The same holds for "just pull out the dates" or "check this for contradictions". Small questions about a large document, and the whole document goes.

Compare that with pasting. Paste two paragraphs and two paragraphs travel. That is the only arrangement in which you determine what gets sent. On upload, the file determines it.

What to do about it

Three questions, in this order:

  1. Does the task need the whole document? Often not. A tone check needs one paragraph. Translating the conclusion does not require the annex.
  2. Does it contain data the task does not need? Names, case numbers, amounts, addresses. Remove them or replace them with a label, keeping the structure intact so the model still follows the text.
  3. Is what is not on the page accounted for? Metadata, comments, tracked changes. See what stays in a PDF after you remove the text.

Work through those three and you end up uploading fragments rather than case files. Better for the answer, because the model has less to be distracted by, and it removes precisely the data nobody can later explain sending.

FAQ

Common questions

Does my whole PDF go to the AI, or only the relevant part?

The whole file goes to the server. The service then decides which portions to place in front of the model, but that selection happens after the file has arrived and been parsed. It is their filtering, not yours.

What happens with a scanned PDF?

A scan is an image with no text layer, so there is nothing to extract without character recognition. Some services apply that automatically and process the page as text anyway; others report they cannot read it. Do not assume a scan is unreadable.

Does my document's metadata travel too?

Frequently. A PDF carries fields such as author, organisation, creation date, producing software, and sometimes the full file path of the machine it was made on. None of that is on the page and all of it is in the file.

Is summarising safer than pasting the text?

No, usually less safe. When you paste, you choose what travels. When you upload, the complete document travels, including annexes, footnotes and the pages you had not read yourself.

What should I do before uploading a document?

Check whether the task needs the whole document. Usually it does not. If it genuinely does, remove the data the task does not need and check the metadata first. Redacting before sharing is the reliable step here.