crawlers

PDFs in AI search: when a document beats a page

How search and AI crawlers handle PDFs, what makes PDF text extractable, how titles are chosen, and when an HTML companion page should carry the answer.

Most sites have a second, quieter corpus sitting next to their HTML: datasheets, whitepapers, price lists, manuals, compliance documents, annual reports. They are linked from product pages, they get searched for by name, and nobody audits them. When an answer engine is asked for a spec or a policy detail, the PDF is often the only place on your site that states it.

Whether that helps you depends on two things you can check: whether the text inside the file can be extracted at all, and whether there is an HTML page that says the same thing in a form that is easier to fetch, parse, and link to. This post covers both, plus titles, metadata, and the controls that work on a file that has no <head>.

It sits under AI crawler access: the technical layer of AI search, because a PDF is first an access question: a URL that a crawler either can or cannot fetch and read.

Key Takeaways

  • Google documents PDF as an indexable file type. Its long-standing rule of thumb: if you can copy and paste the text out of the PDF, it can index that text.
  • OpenAI, Anthropic, and Perplexity do not document how their crawlers handle PDFs. Treat PDF support on those surfaces as unknown, not as absent.
  • A PDF’s search title comes mainly from the title metadata in the file and the anchor text of links pointing to it. Set both.
  • A PDF has no <head>, so noindex, nosnippet, and canonical are sent as HTTP headers.
  • When the answer matters, put it in HTML too, and link the PDF from that page.

Do search and AI crawlers read PDFs?

Google does, and says so; the AI vendors do not say either way. Google’s list of file types indexable by Google includes “Adobe Portable Document Format (.pdf)” as an encoded type, meaning a binary format that needs a parser to extract the human-readable text. Because Google’s documentation for AI features says a page must be “indexed and eligible to be shown in Google Search with a snippet” and that there are “no additional technical requirements,” an indexed PDF falls under the same eligibility rule as an indexed page. That documentation does not mention PDFs specifically.

The AI vendors’ crawler pages are narrower. OpenAI’s bot documentation, Anthropic’s crawler article, and Perplexity’s bot guide describe user agents and robots.txt controls. None of them mentions PDFs or file types. That is not evidence that their crawlers skip PDFs; it means the behavior is undocumented, and any claim that a given assistant “reads” or “ignores” PDFs is a guess.

Where those pages describe what their crawlers fetch, they talk about web pages. That asymmetry is the argument for companion pages, covered below.

What makes PDF text extractable?

Real text in the file is what makes it extractable. Google’s 2011 post on PDFs in search, still the most specific thing it has published on the subject, puts it plainly: Google can index textual content from PDFs “provided they’re not password protected or encrypted,” and “if you can copy and paste the text from a PDF document into a standard text document, we should be able to index that text.” Text embedded as images “may” be processed with OCR. May is not will.

That gives you a five-minute manual test for any PDF:

  1. Open the file in a browser or reader and select a paragraph.
  2. Copy it and paste it into a plain text editor.
  3. Check that the words arrive in reading order, with spaces between them, and without hyphenation debris or ligature glyphs.
  4. Do the same with a table. If the cells arrive as one run-on line, so will the extracted text.
  5. Check the file’s properties for a password or a “no copying” restriction.

The failure modes cluster by how the file was made:

How the PDF was producedTypical extraction resultWhat to do
Exported from a word processor or design tool with text layersClean text, reading order usually preservedSet title metadata and you are mostly done
Scanned from paperNo text layer; only an image of textRun OCR to add a text layer, then re-test; better, publish the source document
”Print to PDF” of a web pageText present, but headers, footers, and page numbers interleaved with contentPublish the web page instead and link the PDF as a download
Multi-column layoutText present, columns sometimes merged line by lineRe-test the copy-paste; consider a single-column export
Password-protected or copy-restrictedGoogle says it won’t index protected or encrypted filesRemove the restriction if the content is meant to be public

Images inside a PDF are a separate case: the same post says they are not indexed, and recommends HTML pages for images you want found.

How is a PDF’s title chosen?

From two sources, according to Google: “the title metadata within the file, and the anchor text of links pointing to the PDF file.” The same post recommends updating both.

Title metadata is the field most often left wrong. Design tools fill it with the working filename (Final_v7_approved), or with nothing, so the file falls back to whatever a system decides. To check it by hand, open the document properties in any PDF reader and read the Title field. To fix it, set the title in the source application’s document properties before exporting, or in the export dialog.

Anchor text is the part you control from your HTML. “Download (PDF, 2 MB)” tells a crawler nothing about what the file is. “ARM-X9 datasheet: payload, reach, and repeatability (PDF)” tells it the subject before it opens the file. The same applies to the filename in the URL: arm-x9-datasheet.pdf is more legible than doc_88213.pdf, for the same reason a descriptive page URL is.

Also set the document language and a subject in the properties. Neither is documented as a ranking or citation input; they are cheap and correct, like lang on <html>.

How do noindex, nosnippet, and canonical work on a PDF?

Through HTTP response headers, because a PDF has no <head> to put a meta tag in. Google’s robots meta tag documentation says to use the X-Robots-Tag header for non-HTML resources such as PDFs, and that “any rule that can be used in a robots meta tag can also be specified as an X-Robots-Tag.” That covers noindex and nosnippet; the snippet controls and what they do on AI surfaces are covered in nosnippet, max-snippet and data-nosnippet on AI surfaces.

Canonical works the same way. Google’s canonicalization documentation says the HTML link element “only works for HTML pages, not for files such as PDF,” and that you can return a rel="canonical" HTTP header instead, including pointing a PDF at its HTML equivalent. If you publish the same content as a page and a PDF and want the page to be the one that’s indexed, that header is how you say so. The broader rules for canonicals are in Status codes, redirects, and canonical drift on AI surfaces.

Two cautions. First, a header a crawler never receives does nothing: Google notes these rules are only read if the file is not blocked by robots.txt. Second, headers are set by whoever runs the server or CDN. For most SEOs this is a ticket, not an edit. Ask for it precisely: “Return X-Robots-Tag: noindex on /internal/*.pdf” or “Return Link: <https://example.com/arm-x9/>; rel="canonical" on /files/arm-x9-datasheet.pdf.”

When should a PDF have an HTML companion page?

Whenever the content answers a question people ask. A companion page is an HTML page that states the PDF’s key content in text, with headings, and links to the PDF as a download. It gives every crawler a format with documented behavior, and it gives you the levers a PDF lacks:

  • A first sentence that answers. A datasheet starts with a cover page and a logo. A page can open with the answer, as described in The 40–60 word answer block.
  • Real HTML tables. Specs extracted from a PDF table often arrive as a single line of numbers. An HTML table keeps row and column relationships.
  • Structured data. Product, Article, or Organization markup lives in HTML. There is no JSON-LD for a PDF.
  • Internal links in both directions. The page sits in your navigation and your sitemap; the PDF is a leaf.
  • A date you can maintain. Updating a page is an edit. Updating a PDF is a re-export, re-upload, and often a new URL.

A document still beats a page in a few cases: when the document is the authoritative artifact (a signed policy, a regulatory filing, a standard), when its layout carries meaning that HTML would lose, or when people search for the file by name and expect to download it. In those cases, keep the PDF as the canonical document and make it extractable, with good metadata. A short HTML summary page that links to it still helps; it doesn’t need to duplicate it.

Don’t publish a full HTML copy and leave both indexable without saying which one is preferred. Google’s PDF post recommends serving a single copy where possible and otherwise indicating the preferred version through the sitemap or a canonical. Choose one.

How do you audit PDFs across a site?

Start with the inventory, then sample. No terminal is needed for either step.

Find them. In any desktop crawler, filter the crawled URLs by content type or by a .pdf extension, and export the list along with the pages that link to each file and the anchor text used. In Search Console, the Performance report’s Pages table can be filtered to URLs containing .pdf to show which documents already receive impressions and for which queries. Those are your high-value documents.

Triage them in a spreadsheet. One row per PDF, with columns for: linking page, anchor text, impressions, text extractable (yes/no from the copy-paste test), title metadata set (yes/no), companion page exists (yes/no), and indexing intent (index, noindex, canonical to page). Test the top documents by impressions and the ones linked from your most important templates first. A few dozen hand tests usually show whether a whole family of files was produced the same way.

Check access separately. A PDF directory blocked in robots.txt is a common leftover from an old cleanup. Test the PDF paths themselves in the robots.txt tester, not just the HTML paths, and confirm the files return 200 to a crawler using the method in How to check whether AI crawlers can actually reach you.

If you want to script it, the same checks run on the command line: pdftotext (from Poppler) shows whether a file has a text layer, and pdfinfo prints the Title field.

pdfinfo arm-x9-datasheet.pdf | grep -i '^title'
pdftotext -l 1 arm-x9-datasheet.pdf - | head -20

An empty pdftotext result on a file full of visible words means the text is an image.

Once the inventory is done, fix in this order: access, then extractability, then titles and anchors, then companion pages for the documents that carry answers, then any duplication. None of this decides whether an assistant quotes your datasheet. It decides whether the datasheet’s content is readable by the systems that could.

GEOBee scores the HTML pages it crawls, so it covers the companion page side of this: answer block, tables, schema, and AI bot access per URL. If you want that view across your product and documentation templates, download GEOBee and run the 7-day trial.

On this page