# Offer an HTML version of critical resources

- Check 17.14 · Videos, PDFs and multimedia · Complementary
- Source: https://checklist-seo-geo.com/en/videos-pdfs-multimedia/offer-html-version-critical-resources
- Spot the PDFs that hold key information, publish a structured HTML version, then connect the PDF to the page with a canonical, a noindex or a redirect.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/videos-pdfs-multimedia/offer-html-version-critical-resources.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A critical resource is a document a visitor's decision depends on: prices, technical data sheet, terms, opening hours, restaurant menu, reference guide, study. When it only exists as a PDF, it is less well understood, less well measured and harder to keep up to date. The task is to publish its content on a real HTML page, keep the PDF as a download option if needed, and tell search engines which of the two versions to index.

## Why it matters

Google and Bing index PDFs, but an HTML page offers more:

- **Readable structure**: headings, lists, tables and anchors, which search engines and generative engines use to extract a precise answer. A PDF laid out in columns, with drawn tables, is often read out of order once converted to text.
- **Page signals**: title, meta description, canonical, structured data, breadcrumbs, internal links. A PDF has none of these.
- **User journey**: the page is part of the site, with navigation, a call to action and contact details. A visitor who lands on a PDF from Google often has no way to go further.
- **Updates**: changing a paragraph in HTML takes a minute; republishing a PDF means finding the source file, re-exporting, replacing the file and purging caches.
- **Measurement**: the analytics tool tracks how the page is read, not how a PDF is.

On the GEO side, nothing is documented about how ChatGPT, Claude, Perplexity or Gemini handle PDFs during their searches. A well-structured HTML page, on the other hand, is exactly the format they can all read. It is a precaution, not a guarantee of citation. See also [avoid relying solely on a PDF](https://checklist-seo-geo.com/en/readability-direct-answers/avoid-relying-solely-pdf).

## What it improves

- **Understanding**: structured, extractable content, with direct answers possible.
- **Ranking**: indirect effect. The HTML page can target a query precisely and receive internal links.
- **AI citations**: a format that is easier to read and cite; effect not guaranteed.
- **Conversion**: the visitor stays on the site, with a path to purchase or contact.
- **Accessibility and mobile**: a responsive page reads better on a phone than an A4 PDF.
- **Freshness**: a single up-to-date source, with a visible revision date.

## How to check

**1. Which PDFs get search traffic?** In the Search Console [Performance report](https://search.google.com/search-console/performance/search-analytics), add a `Page` > `URLs containing` > `.pdf` filter over a 12-month period. Sort by clicks and by impressions.

**2. Which PDFs are downloaded?** In GA4, enhanced measurement records the `file_download` event with the `file_name` and `link_url` parameters. In Matomo, the `Behaviour > Downloads` report gives the same information.

**3. Is there an HTML version?** For each PDF on the list, look for the page that contains the same information. It must exist, contain the essentials of the document and be indexed.

**4. Which of the two does Google show?** Inspect the PDF's URL in Search Console: the “Google-selected canonical” line shows the version it chose.

Compliant result: every critical resource has an indexed HTML page, and the corresponding PDF points to it (canonical, `noindex` or redirect).

## How to implement

### Step 1 — Identify the critical resources

Cross-reference the three sources from the previous section in a table:

| PDF | Clicks, 12 months | Downloads, 12 months | Content | Equivalent HTML page | Critical? |
|---|---|---|---|---|---|
| `/docs/tarifs-entretien.pdf` | 420 | 310 | Price list | No | Yes |
| `/docs/fiche-technique-pac-8kw.pdf` | 95 | 180 | Technical specifications | Summary only | Yes |
| `/docs/guide-entretien-chaudiere.pdf` | 260 | 140 | Practical guide | No | Yes |
| `/docs/plaquette-salon-2024.pdf` | 3 | 12 | Sales brochure | No | No |

Fictitious examples. A resource is critical if any of these conditions is met: it answers a purchase question (price, specifications, terms), it receives search traffic, it is updated often, it receives external links, or it contains data you want to see cited.

### Step 2 — Choose the target format

| Situation | Recommended format |
|---|---|
| Short, frequently changing information (prices, opening hours, terms, FAQ) | HTML only; delete the PDF and redirect it |
| Long document that people print or archive (guide, manual, study) | Full HTML + downloadable PDF, with the PDF's canonical pointing to the page |
| Regulatory or contractual document in a mandatory format | PDF kept + an HTML overview page summarizing its content |
| Product technical data sheet | Specifications in HTML on the product page (table), manufacturer's PDF as a download |

### Step 3 — Retrieve the content cleanly

Always start from the source file, never from a copy and paste out of the PDF when it can be avoided.

- **From Word**: Pandoc, which is free, converts a `.docx` to HTML or Markdown while keeping headings, lists, tables and images:

  ```bash
  pandoc guide-entretien-chaudiere.docx -t gfm -o guide-entretien-chaudiere.md --extract-media=images
  pandoc -s guide-entretien-chaudiere.docx -o guide-entretien-chaudiere.html --extract-media=images
  ```

- **In WordPress**: copying and pasting from Word or Google Docs into the block editor creates Heading, List and Table blocks. Then check the heading levels and remove stray formatting.
- **Without a source file**: `pdftotext -layout document.pdf -` (Poppler) extracts the text. Then rebuild the structure by hand; the HTML export tools of PDF software produce heavy code, fit only for a draft. If the PDF is a scan, run OCR first: see [check that PDFs contain selectable text](https://checklist-seo-geo.com/en/videos-pdfs-multimedia/check-that-pdfs-contain-selectable-text).

### Step 4 — Build the HTML page

The page is not a raw copy of the PDF: it is the reference version. Template:

```html
<article>
  <h1>Boiler servicing prices in Nantes</h1>
  <p>Annual servicing of a gas boiler: €120 including VAT, travel included within Nantes. Prices valid since September 1, 2026.</p>

  <h2 id="chaudiere-gaz">Gas boiler</h2>
  <table>
    <caption>Gas boiler servicing prices, including VAT</caption>
    <thead>
      <tr><th scope="col">Service</th><th scope="col">Price incl. VAT</th></tr>
    </thead>
    <tbody>
      <tr><td>Annual servicing</td><td>€120</td></tr>
      <tr><td>Annual contract with breakdown repairs</td><td>€180</td></tr>
    </tbody>
  </table>

  <p>Updated on <time datetime="2026-09-01">September 1, 2026</time>.</p>
  <p><a href="/docs/tarifs-entretien.pdf">Download the price list (PDF, 240 KB)</a></p>
</article>
```

Checkpoints:

1. **Answer first**: the first sentence gives the main information. See [put key answers before the details](https://checklist-seo-geo.com/en/readability-direct-answers/put-key-answers-before-details).
2. **Real HTML tables** with `<caption>` and `<th>` headers, never images of tables. See [structure tables and lists with native elements](https://checklist-seo-geo.com/en/semantic-html-accessibility/structure-tables-lists-native-elements).
3. **Charts with a text alternative**: see [provide a text alternative for charts](https://checklist-seo-geo.com/en/videos-pdfs-multimedia/provide-text-alternative-charts).
4. **Units, currencies, validity period and update date** visible.
5. **Stable anchors** (`id`) on long sections, for deep links.
6. **A link to the PDF** with the format and file size in the anchor text.
7. **A clean title and meta description**, plus structured data if a type applies (`Article`, `Product`, `Dataset`…).

### Step 5 — Connect the PDF to the page

Three options, depending on the choice made in Step 2:

- **PDF kept, same content**: an HTTP `Link` header with `rel="canonical"` pointing to the HTML page. Google supports this method for non-HTML files in web search.
- **PDF kept, not to be indexed**: an `X-Robots-Tag: noindex` header. More drastic, but effective if the canonical is not followed.
- **PDF deleted**: a 301 redirect from the PDF's URL to the HTML page, to keep the links and the traffic.

Examples below for a canonical and a redirect. The complete configurations for Plesk, cPanel, AWS, Laravel and Netlify are in [optimize public PDFs](https://checklist-seo-geo.com/en/videos-pdfs-multimedia/optimize-public-pdfs).

> **Warning:** do not block the PDF in robots.txt. Google could no longer read the canonical or `noindex` header, and the URL could stay indexed without content.

### Apache

Versions: Apache 2.4.

In the root `.htaccess` (`mod_headers` module required for the canonical):

```apache
<Files "guide-entretien-chaudiere.pdf">
    Header set Link "<https://example.com/guides/entretien-chaudiere/>; rel=\"canonical\""
</Files>

Redirect 301 /docs/tarifs-entretien.pdf https://example.com/tarifs/entretien-chaudiere/
```

### Nginx

Versions: Nginx 1.18 and later, including 1.30 (stable) and 1.31 (mainline).

In the `server` block:

```nginx
location = /docs/guide-entretien-chaudiere.pdf {
    add_header Link '<https://example.com/guides/entretien-chaudiere/>; rel="canonical"' always;
}

location = /docs/tarifs-entretien.pdf {
    return 301 https://example.com/tarifs/entretien-chaudiere/;
}
```

Reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

Canonical: from the [rules overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview), `Create rule > Response Header Transform Rule`, condition “URI Path” equals `/docs/guide-entretien-chaudiere.pdf`, operation “Set static”, header `Link`, value `<https://example.com/guides/entretien-chaudiere/>; rel="canonical"`. Redirect: `Create rule > Redirect Rule`, same condition, target URL, status code 301. Then purge the PDF's URL from the cache.

### WordPress

Versions: WordPress 6.4 to 7.1; Redirection 5, Rank Math 1.0, Yoast SEO Premium 20 and later.

- Create the HTML page, then insert the PDF with the “File” block (download link, optional embedded preview).
- To redirect a deleted PDF, a redirect plugin (Redirection, or the redirections module of Rank Math or Yoast SEO Premium) also handles URLs under `/wp-content/uploads/`, provided the file no longer exists on the server and the server passes missing files on to WordPress. Delete the PDF from the Media Library, then test the URL with `curl -I`: if there is no 301, set the redirect in `.htaccess` or the Nginx configuration.
- For the canonical of a PDF you keep, use `.htaccess` (Apache section): SEO plugins do not set headers on files.

### Shopify

Versions: Shopify admin and Online Store 2.0 themes, all plans, November 2026.

Move the technical specifications into the product description or into metafields displayed by the theme, as a table. Keep the manufacturer's PDF as a download link. The headers of files served by Shopify cannot be changed: the HTML page simply has to be more complete and better linked than the PDF.

### Next.js

Versions: Next.js 15 and 16 (App Router and Pages Router).

In `next.config.js`, combine `headers()` for the canonical and `redirects()` for removed PDFs:

```js
module.exports = {
  async headers() {
    return [
      {
        source: '/docs/guide-entretien-chaudiere.pdf',
        headers: [{ key: 'Link', value: '<https://example.com/guides/entretien-chaudiere/>; rel="canonical"' }],
      },
    ];
  },
  async redirects() {
    return [
      { source: '/docs/tarifs-entretien.pdf', destination: '/tarifs/entretien-chaudiere/', permanent: true },
    ];
  },
};
```

Redirects are checked before files in `public/`: the rule applies even if the PDF is still there. Delete it anyway so it is no longer published. `permanent: true` returns a 308 status code, which Google treats as a permanent redirect.

### Step 6 — Update links and measure

1. In menus, articles and automated emails, replace links to the PDF with links to the HTML page.
2. Add the page to the XML sitemap; remove the PDF from it if it carries a canonical, a `noindex` or a redirect.
3. Request indexing of the page through URL inspection.
4. After four to eight weeks, compare in the Performance report the PDF's clicks before with the page's clicks after. Check with URL inspection that Google has chosen the HTML page as canonical.

## Common mistakes

- **A skeletal HTML page** that refers to the PDF for details: Google and generative engines keep preferring the more complete PDF.
- **Two versions that diverge**: the page is updated, the PDF keeps the old prices. Date both, or generate the PDF from the page.
- **Blocking the PDF in robots.txt** instead of using a `noindex` or canonical header.
- **Deleting the PDF without a redirect**: broken external links and lost traffic.
- **Price tables pasted as images** in the HTML page: the PDF's problem is simply moved elsewhere.
- **A canonical pointing to a page that does not have the same content**: Google then often ignores the hint.

## Frequently asked questions

### Should I remove PDFs from my site?

No, you should not systematically remove PDFs. They remain useful for printing, archiving or sharing a reference document. The goal is for critical information to also exist on an indexable, structured, up-to-date HTML page. Keep the PDF as a download with a canonical pointing to the page, or delete it with a 301 redirect if its content is short and frequently changed.

### Can I put a canonical tag on a PDF?

Yes, a canonical can be declared for a PDF, but not in the file itself: it goes through the HTTP Link header with the rel="canonical" attribute and an absolute URL, configured on the server or the CDN. Google supports this method for non-HTML files in web search. The target HTML page must have the same content as the PDF, otherwise the hint may be ignored.

### Is an HTML page cited more by ChatGPT or Perplexity than a PDF?

No generative engine vendor documents an explicit preference between an HTML page and a PDF. A structured HTML page, with headings, tables and direct answers, nevertheless remains the easiest format for every crawler to read and split into passages. Publishing critical information in HTML is therefore a reasonable precaution, with no guarantee of being cited or recommended.

### How do I convert a Word document into a clean web page?

To convert a Word document into a clean web page, avoid Word's “Web Page” save option, which produces heavy code. Use Pandoc, which is free, to get HTML or Markdown that keeps headings, lists, tables and images, or paste the content into the WordPress block editor. Then check the heading levels, the tables and the alt text of images.

## Resources

- [Google Search Central: canonical in the HTTP header](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en)
- [Google Search Central: X-Robots-Tag header](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=en)
- [Google Search Central: redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects?hl=en)
- [Google Search Central (blog, 2011): PDFs in Google search results](https://developers.google.com/search/blog/2011/09/pdfs-in-google-search-results)
- [Pandoc: user's guide](https://pandoc.org/MANUAL.html)
- [Google Analytics Help: enhanced measurement](https://support.google.com/analytics/answer/9216061?hl=en)

Next steps: [provide a text alternative for charts](https://checklist-seo-geo.com/en/videos-pdfs-multimedia/provide-text-alternative-charts) and [avoid relying solely on a PDF](https://checklist-seo-geo.com/en/readability-direct-answers/avoid-relying-solely-pdf).
