Google can index PDF files, so a PDF guide is eligible for search by default. Whether it appears depends on what your server returns for that URL: the response status, the Content-Type, any X-Robots-Tag header, and whether robots.txt lets the crawler fetch it. The public documentation covers Google. It does not settle whether every AI assistant reads PDFs, so treat that as something to test.

What the documentation supports

  • Adobe Portable Document Format (.pdf) is on Google's list of indexable file types, and Google determines the file type from the Content-Type HTTP header when it crawls [2].
  • Google says PDFs can rank highly and generally rank similarly to webpages when their content and links support it [4].
  • For non-HTML resources such as PDFs, video and images, the way to control indexing is the X-Robots-Tag response header, because there is no HTML head to put a meta tag in [1].

Nothing in these sources says a PDF is treated worse than a page. They also say nothing about how other AI products handle PDFs.

Step 1: Fetch the PDF and read the headers

Request only the headers:

curl -sI https://example.com/guides/setup-guide.pdf

Look at these lines:

HTTP/2 200
content-type: application/pdf
x-robots-tag: noindex
link: <https://example.com/guides/setup>; rel="canonical"
HeaderWhat to check
Status line200 for a PDF you want fetched. Redirects, 404s and soft errors are covered in HTTP status codes for SEO and AI crawlers.
content-typeShould be application/pdf. Google uses this header to decide the file type [2]. A generic type like application/octet-stream is worth fixing.
x-robots-tagShould say what you intend. Absent means no indexing rule is sent from the header.
linkPresent only if you set a canonical for the PDF (see Step 4).

If you expect a PDF to be indexable and it carries X-Robots-Tag: noindex, find where the header is set (web server config, CDN rule, framework middleware) before changing anything. Someone may have added it on purpose, for example for gated or outdated files. The check is whether the header matches your decision, not whether it is absent.

If several directives conflict, the more restrictive one wins [5]. Rules from a CDN and from your origin can combine, so test the public URL, not just the origin.

Step 2: Make sure robots.txt is not hiding the header

robots.txt manages crawling. If a PDF is blocked there, Google will not detect a noindex or other indexing rule in the header [5]. For the same reason, Google says not to use robots.txt to keep PDFs out of search results: the URL can still appear [3].

So the two files do different jobs:

For how page-level directives interact with AI crawlers specifically, see noindex and AI crawlers.

Step 3: Check what the PDF shows in results

For PDFs, Google says the main signals for the title in results are the file's title metadata and the anchor text of links pointing to it [4]. Two practical fixes follow:

  • Set the document title in the PDF's properties, not just the filename. Many export tools leave it as "Untitled" or the source file name.
  • Link to the PDF from your own pages with descriptive anchor text, such as "Setup guide for the billing API (PDF)", not "click here".

Step 4: Decide whether to add an HTML version

Google can index the PDF, so an HTML copy is not required for Google. Many teams publish both anyway. In our reading, the reasons are practical rather than documented: an HTML page is easier to link to, can carry headings and structured data, and is easier to read on a phone. If the guide is meant to be found, both formats are a reasonable setup. If it is a gated or rarely used download, the PDF alone may be enough.

If you publish both, avoid duplicates competing with each other. Google recommends serving a single copy where possible, and when HTML and PDF both exist, indicating the preferred version [4]. For a PDF, you do that with a canonical in the HTTP Link header; Google supports this for non-HTML documents and says it applies to web search results [6].

Nginx example, where the HTML page is the preferred version:

location = /guides/setup-guide.pdf {
    add_header Link '<https://example.com/guides/setup>; rel="canonical"';
}

Then confirm with curl -sI that the header appears on the public URL. A canonical is a signal, not a command. The behavior is explained in canonical tags explained.

On the HTML page, link to the PDF as a download. Keep the two versions consistent, because a stale PDF next to an updated page gives readers two answers.

Other AI assistants

The sources here cover Google Search. Whether ChatGPT, Claude, Perplexity or others fetch and parse a given PDF is not established by them, and behavior may differ by product and by whether the PDF is retrieved live or from an index. Do not assume a PDF is readable everywhere. Ask the assistants questions only the PDF answers and see what they return, and keep an HTML version for guides you need those tools to reach.

What to do next

  1. Run curl -sI on each PDF guide and record status, content-type, x-robots-tag and link.
  2. Compare each result with your intent: indexable, excluded on purpose, or canonicalized to HTML.
  3. Confirm robots.txt does not block any PDF whose header you rely on.
  4. Set the PDF title property and link to each file with descriptive anchor text.
  5. For guides that matter, publish an HTML page, add the Link canonical on the PDF if you want the page preferred, and test with a few assistants.