Control over AI
Blog
AI data leakage 8 min read

What happens when you upload a PDF to a chatbot?

Step by step, from dropping the file in to the summary on your screen, and why "I only asked it to summarise" describes your request, not what was sent.

Abstract frames with rounded corners
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, together with whatever metadata comes with it. From that point the contents are ordinary conversation text: they count against the context window, they land in your history and they inherit 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 let go of the file, the whole thing is uploaded 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. If the document was exported from Word without clearing them first, they come along.
  • Metadata. Author name, organisation, creation date, producing software and sometimes the full file path on the machine where the document was created.

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. It is not safe to assume that a scan cannot be read.

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 our article on what a chat history actually is.

Why there is no such thing as "just summarising"

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 is the other way round. To summarise, the model has to see the whole thing. The brevity lives in the output, never in the input.

The same goes 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 way of working in which you decide what gets sent. When you upload, the file decides.

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. That is better for the answer, because the model has less to distract it, and it keeps out exactly the data nobody can later explain having sent.

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 on the machine where it was made. None of that is on the page and all of it is in the file.

Is uploading a document for a summary 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.

Portrait of Rens Timmermans from BeeSensible

Prefer someone to walk you through it?

Rens, BeeSensible

I'm happy to give you a twenty-minute tour. Leave your details and I'll find a time that suits you. You're also welcome to call or email.

Prefer to talk to someone first?

Want a live demo, or a quote for 100+ users? Leave your details and we'll be in touch within one working day.