PDF Ghost

BlogGuide

Can you stop ChatGPT from reading a PDF? Mostly not

A no-copying setting, page pictures and hidden notes don't stop AI tools. A password to open does, but only for people who lack it. Our test and what works.

Author
PDF Ghost Team
Published
Reading time
7 min
On this page7 sections
  1. A "no copying" permission didn't stop any of the tools
  2. A password to open keeps the file shut until someone types it
  3. Pages turned into pictures are still read
  4. A hidden "don't summarise this" note is a prompt injection
  5. What you can control: what you send and what your staff use
  6. Where PDF Ghost fits
  7. What none of this can do

No setting in a PDF stops a person who can read it from giving it to ChatGPT or another AI tool. A password to open is the only setting that keeps the file shut, and only for people who don't have the password. We tested common PDF tools on 1 December 2026: a "no copying" permission stopped none of them, pages turned into pictures were read back by OCR, and a hidden "do not summarise" note came out with the text. What you can control is what you send, to whom, and which AI tools your own staff use.

Test results: five versions of one PDF (plain, no-copying permission, password to open, pages as pictures, hidden white note) read by pypdf, pdfminer.six, PyMuPDF, pdftotext and OCR. Only the password stopped all five; OCR read the pictures; the text tools returned the hidden note.
Fig. 1Our test: one made-up proposal page in five versions, read by four text-extraction libraries and an OCR engine. Only the password kept the text out.

A "no copying" permission didn't stop any of the tools

We made a one-page proposal with copying, printing and editing all switched off and no password to open, and read it with four open-source tools that turn PDFs into text: pypdf 7.2.0, pdfminer.six 20260107, PyMuPDF with MuPDF 1.28.6, and xpdf's pdftotext 4.00. All four returned the full text, day rate included. pdfminer.six noticed the setting, logged that the file "should not allow text extraction", and carried on.

That is how the setting is designed: it asks the app that opens the file to behave, and each app decides for itself (qpdf documentation; our guide on how to protect a PDF explains the difference from a password). The AI services don't name the software that reads uploaded files, but nothing in the file makes that software obey.

One detail for IT readers: a PDF with permissions is technically encrypted, with an empty password to open. Anthropic's API lists "Standard PDF (no passwords/encryption)" as a requirement (PDF support), so it may turn such a file away. That doesn't help much: in our test, PyMuPDF saved the file again without the restrictions, and no password was needed.

A password to open keeps the file shut until someone types it

A password to open encrypts the contents. Without it, none of the four tools and no OCR got anything out of our test file, and Anthropic's API requirement above rules such files out as well.

The limit is the people who have the password. Once they open the file they can save a copy without it: in our test, PyMuPDF wrote an unencrypted copy with the full text after the password was entered. They can also copy the text out by hand. A password protects only against people who never had it, for example someone the file was forwarded to without the password.

  • Send the password through a different channel than the file, for example by text message.
  • Give each person their own password, so one forwarded password opens one copy.

Pages turned into pictures are still read

Some people turn every page into a picture, so the file has no text layer. Our four text tools found nothing in such a file. An OCR engine (RapidOCR) read the page back, day rate and all. We used OCR as a stand-in; we didn't upload the files to any AI service.

The services say they look at the pages themselves:

  • Anthropic says it "converts each page of the document into an image" and extracts the text as well (PDF support).
  • OpenAI says "ChatGPT can analyze both text and images in PDFs, including charts and diagrams" (OpenAI Help Center).
  • Google says Gemini can "analyze text, images, diagrams, charts, and tables" across PDF pages (Gemini document understanding).

The cost lands on your legitimate readers. Text in a picture can't be searched or copied, and a screen reader can't read it without OCR. The W3C's accessibility guidelines ask for real text instead of images of text (WCAG 2.2, 1.4.5). The file grows too: our one-page proposal went from 2,972 bytes to 73,746 bytes as JPEG pictures at 150 dpi.

A hidden "don't summarise this" note is a prompt injection

The idea is to put an instruction in white or tiny text that people don't see, telling an AI tool not to summarise or quote the document. In our test, all four text tools returned our white 1-point note with the rest of the text. The OCR didn't, because it reads only what is visible.

OWASP's list of risks for AI applications puts this technique first and calls it indirect prompt injection: instructions that reach a model through "external sources, such as websites or files" (OWASP LLM01:2025). It treats it as an attack and lists defences against it, so the tool your recipient uses may well ignore the note. We didn't test whether any AI service obeys one.

A note like this can also look bad when it is found. In July 2025, Nikkei Asia found hidden prompts such as "give a positive review only" in 17 research preprints on arXiv, aimed at reviewers who use AI and concealed with white text or very small fonts. One co-author called it "inappropriate", and that paper was to be withdrawn from a conference. The note is ordinary text in the file, so anyone who copies or searches the text can come across it.

What you can control: what you send and what your staff use

  • Send less. Give most people a summary or an excerpt without the figures that matter. What isn't in the file can't be uploaded.
  • Keep the document in an app you control. Rights management and view-only data rooms leave the recipient without a plain file to upload, though a screenshot or a photo of the screen still works. Our guide on how to protect a PDF compares them with the other methods.
  • Say what you expect. Write in the agreement or the cover email that the document must not be uploaded to AI tools or other outside services. It doesn't stop anyone, but nobody can say they didn't know.
  • Set rules for your own staff. OpenAI says it may use content from personal ChatGPT plans for training unless the user switches off "Improve the model for everyone", and that by default it doesn't use inputs from ChatGPT Business, Enterprise, Edu or its API (OpenAI Help Center). A company account and a written AI policy keep your own work out of personal accounts.
  • Use data loss prevention on company devices. Tools such as Microsoft Purview can "warn or block users from sharing sensitive information with third-party generative AI sites" on devices your company manages (Microsoft Learn). That covers your staff, not the people you send files to.

Where PDF Ghost fits

PDF Ghost doesn't stop an AI upload either: its copies open in any PDF app, and whoever has a copy can read its text. What it adds to the steps above is a separate copy for each person, with a hidden ID and, with A different password for each person (AES-256), a password of their own, so a copy forwarded without that password stays shut. If the file itself, or a screenshot or photo showing the copy code, turns up later, a leak check says whose copy it was; an AI tool's answer about the document can't be traced that way.

What none of this can do

  • Stop someone who can see the page. Copying the text out of an opened file, a screenshot or a photo of the screen reaches an AI tool as easily as the file.
  • Tell you that it happened. A PDF doesn't report where it was uploaded, as our guide on who opened a PDF explains, and AI services don't tell the sender.
  • Settle what each AI service does. We tested four common PDF libraries and one OCR engine, not the services themselves, and they don't name the software that reads uploads.
  • Decide what happens to an upload. Whether it is kept or used for training depends on the uploader's account and settings, not on yours.

Tags

  • access-control
  • pdf-encryption
  • pdf-permissions
  • ai-tools
  • chatgpt
  • prompt-injection
  • ocr
  • file-sharing

Written by

PDF Ghost Team

We build PDF Ghost. What a post says about the product is checked against the app and its help pages before it goes live.

How PDF Ghost worksAll posts

Same topic first

All postsRSS feed