Check 25.13 · Translating SEO elements

Translate downloadable documents

Translate PDFs, data sheets and downloadable guides: source file, document name, title and language, links and hreflang headers for each environment.

Priority
Important
Difficulty
Intermediate
Estimated time
2 h to several days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Downloadable documents (PDFs, data sheets, catalogs, user manuals, white papers, terms and conditions) are pages in their own right for search engines: Google indexes them and shows them in its results. On a multilingual site, though, they often stay in the original language, linked from every version. Once this check is done, each document useful to a market exists in its language, with a consistent file name, title and declared language; it is linked from the page in the same language, and its language versions are connected to each other.

Why it matters

Google indexes PDF, Word, Excel, PowerPoint, OpenDocument and RTF formats: a document is therefore a possible search result, with its own title and its own snippet. Google determines the language of content from the text, not the URL. A French PDF linked from the German page remains a French result: it answers no German query and, if it does appear, disappoints the German-speaking visitor.

According to a 2011 Google Search Central article, the title shown for a PDF depends mainly on two elements: the file's title metadata and the text of the links pointing to it. A translated document whose metadata still says “Guide d'infusion v3 final”, or whose link reads “Download”, will show a poor title in the target language.

A document has no <head> tag: to connect its language versions or designate a canonical version, Google accepts HTTP Link headers with rel="alternate" and hreflang, or rel="canonical". Its documentation explicitly mentions PDFs.

For generative engines, an indexed document written in the language of the question can serve as a source. Nothing guarantees it, and information that exists only in a PDF is harder to use than an HTML page: see avoid relying solely on a PDF (opens in a new tab).

What it improves

  • Document visibility in the results of each language, including searches for data sheets and user manuals.
  • Experience and conversion The visitor gets the document in their language instead of a file they cannot read.
  • Language consistency of the version: fewer outbound links to content in another language.
  • Compliance Some user manuals, safety data sheets or terms of sale must be provided in the language of the country of sale. Check your obligations with a lawyer.
  • Citations in AI answers A possible effect, not guaranteed, more likely if the essentials of the document also exist in HTML.

How to check

List the documents of each version:

  • Google: the search site:example.com/de/ filetype:pdf lists some of the PDFs indexed under the German directory. The site: operator gives a sample, not a complete inventory.
  • Crawl: Screaming Frog lists the PDFs it finds (Internal tab, PDF filter) and the page that links to them (Inlinks tab). Crawl each language directory separately.

For each document, check the language of the text, the file name, the title metadata and the declared language:

curl -s -o aufguss-ratgeber.pdf https://example.com/de/dokumente/aufguss-ratgeber.pdf
pdfinfo aufguss-ratgeber.pdf | grep -E "^Title"
python3 -c "from pypdf import PdfReader; r = PdfReader('aufguss-ratgeber.pdf'); print(r.metadata.title, r.trailer['/Root'].get('/Lang'))"

pdfinfo is part of Poppler; the second command requires the pypdf Python library (pip install pypdf). Compliant result: a title in the language of the document and a de language.

Finally, check the document's HTTP headers:

curl -s -I https://example.com/de/dokumente/aufguss-ratgeber.pdf | grep -i -E "^(content-type|content-language|link|x-robots-tag)"

If you connect the versions with hreflang, each version must return exactly the same Link header.

How to implement

The examples follow Thé des Lisières, a fictitious loose-leaf tea shop, which publishes a brewing guide in French (/fr/documents/guide-infusion.pdf) and translates it into German (/de/dokumente/aufguss-ratgeber.pdf).

Before you start

Decide what happens to each document in a table:

Document Audience Decision (de) Reason File name (de)
Brewing guide Customers Translate High traffic, useful to the market aufguss-ratgeber.pdf
Sencha data sheet Resellers Translate Requested by German resellers datenblatt-sencha.pdf
Terms and conditions of sale Everyone Translate and have approved Contractual obligation agb-the-des-lisieres.pdf
2019 press review Press Do not translate Articles in French, no use (link removed from the de version)

Criteria: translate what helps sell, use the product or meet an obligation. A document that will not be translated should not be linked from another version without saying so (“PDF, in French”). If its content matters, publish the essentials in HTML in the target language.

Production rules:

  • Translate the source file (Word, InDesign, Google Docs, LibreOffice), not the PDF. A computer-assisted translation tool reads these formats or their XLIFF export and reuses your glossary and translation memory (opens in a new tab).
  • Real text, not images: a scanned PDF or pages exported as images contain no indexable text. See check that PDFs contain selectable text (opens in a new tab).
  • The whole document: tables, captions, annotated diagrams, headers and footers, legal notices, the address of the country's customer service.
  • File name in the language, lowercase, with no spaces or accents: aufguss-ratgeber.pdf rather than guide-infusion-DE-v2.pdf.
  • Metadata: translated document title and language. See fill in PDF titles and metadata (opens in a new tab).
  • Link from the page in the same language, with a descriptive translated anchor (“Aufguss-Ratgeber für grünen Tee (PDF, 2 MB)”) rather than “Download”.
  • Old version: if the same French file was linked from the German version, replace the link; do not delete the French PDF.

Producing the translated PDF

Microsoft Word: set the language of the text (Review > Language > Set Proofing Language, after selecting everything), enter the title in File > Info > Properties > Title, then File > Save As > PDF > Options and check the document structure tags for accessibility.

LibreOffice Writer: Tools > Language > For All Text, title in File > Properties > Description, then File > Export as PDF with the tagged PDF or PDF/UA option.

Adobe Acrobat (to fix an existing PDF): File > Properties, Description tab for the title, Advanced tab then Reading Options > Language for the language, Initial View tab to show the document title rather than the file name.

From the command line, ExifTool fixes the title without re-exporting:

exiftool -PDF:Title="Aufguss-Ratgeber für grünen Tee" -XMP-dc:Title="Aufguss-Ratgeber für grünen Tee" -overwrite_original aufguss-ratgeber.pdf

The PDF's reading language (the document's Lang entry) is best set in the source file or in Acrobat.

Apache

Versions Apache 2.4.

With mod_headers enabled, add the language versions of each document and the language of the directories to the root .htaccess or the virtual host:

<IfModule mod_headers.c>
    <If "%{REQUEST_URI} =~ m#^/(fr/documents/guide-infusion|de/dokumente/aufguss-ratgeber)\.pdf$#">
        Header set Link "<https://example.com/fr/documents/guide-infusion.pdf>; rel=\"alternate\"; hreflang=\"fr\", <https://example.com/de/dokumente/aufguss-ratgeber.pdf>; rel=\"alternate\"; hreflang=\"de\""
    </If>

    <If "%{REQUEST_URI} =~ m#^/de/.+\.pdf$#">
        Header set Content-Language "de"
    </If>
</IfModule>

Add one <If> block per translated document. Test with sudo apachectl configtest, reload (sudo systemctl reload apache2), then rerun the curl -I command on each version: the Link header must be identical.

Nginx

Versions Nginx 1.18 and later.

In the http context (for example /etc/nginx/conf.d/documents-langues.conf):

map $uri $document_alternates {
    default "";
    ~^/(fr/documents/guide-infusion|de/dokumente/aufguss-ratgeber)\.pdf$ '<https://example.com/fr/documents/guide-infusion.pdf>; rel="alternate"; hreflang="fr", <https://example.com/de/dokumente/aufguss-ratgeber.pdf>; rel="alternate"; hreflang="de"';
}

map $uri $document_language {
    default "";
    ~^/de/ de;
    ~^/fr/ fr;
}

Then in the site's server block:

location ~* \.pdf$ {
    add_header Link $document_alternates;
    add_header Content-Language $document_language;
}

Nginx does not send a header whose value is empty. Be careful: add_header directives in this location replace those inherited from the server block (security headers, caching); copy them over if needed or, from Nginx 1.29.3, add add_header_inherit merge; in the server block to keep them. sudo nginx -t && sudo systemctl reload nginx.

Cloudflare

Versions Cloudflare dashboard, Transform Rules, all plans, November 2026.

Without server access, add the header at the edge: Rules > Overview (open), create a response header transform rule, with the expression:

(http.request.uri.path in {"/fr/documents/guide-infusion.pdf" "/de/dokumente/aufguss-ratgeber.pdf"})

Action: set the static Link header with the value from the Apache section (without the backslashes). Create one rule per group of documents. Then purge both URLs in Caching > Configuration.

AWS

Versions Amazon S3 and CloudFront console, AWS CLI v2, CloudFront Functions (JavaScript runtime 1.0 and 2.0), November 2026.

S3: upload each version with its language as system metadata:

aws s3 cp aufguss-ratgeber.pdf s3://example-documents/de/dokumente/aufguss-ratgeber.pdf --content-type application/pdf --content-language de

CloudFront: for the Link header, associate a CloudFront Function with the behavior that serves the PDFs, on the viewer response event:

var groups = [
  { fr: '/fr/documents/guide-infusion.pdf', de: '/de/dokumente/aufguss-ratgeber.pdf' },
];

function handler(event) {
  var response = event.response;
  var uri = event.request.uri;

  groups.forEach(function (group) {
    var languages = Object.keys(group);

    if (languages.some(function (language) { return group[language] === uri; })) {
      response.headers['link'] = {
        value: languages.map(function (language) {
          return '<https://example.com' + group[language] + '>; rel="alternate"; hreflang="' + language + '"';
        }).join(', '),
      };
    }
  });

  return response;
}

Publish the function, associate it with the behavior, then invalidate /de/dokumente/* and /fr/documents/*.

WordPress

Versions WordPress 6.8 to 7.1; WPML 4.x with Media Translation, Polylang 3.x.

Rename the file before uploading: WordPress uses the name for the URL.

  • WPML: with the Media Translation module active, the Media tab of WPML > Translations lets you upload a replacement file per language, PDFs included; the translated page then points to the German PDF.
  • Polylang: with the media module active (Languages > Settings), upload the German PDF as a separate media item, assign it the German language, then link it from the page translation (File block or link).
  • Without a multilingual plugin dedicated to media: upload one file per language and check the link in each translation.

PDF hreflang headers cannot be set in WordPress: use the Apache, Nginx or Cloudflare section.

Shopify

Versions Shopify admin and Translate & Adapt app, all plans, November 2026.

Upload each version in Content > Files, then, in Translate & Adapt, replace the PDF link in the translation of the product description or page. Shopify does not let you add HTTP headers to files: settle for correct links from each language and careful metadata.

PrestaShop

Versions PrestaShop 8 and 9.

In Catalog > Files, the name and description of an attachment are translated per language, but the file itself is unique: a file attached to the product appears in every language. For one PDF per language, link it from the product description in each language, or use a multilingual attachments module after checking that it serves a separate file per language.

Drupal

Versions Drupal 10 and 11.

In Configuration > Regional and language > Content language and translation, mark the content type's file field (or the field of the Document media type) as translatable: each translation of the node then carries its own file.

Laravel

Versions Laravel 11 to 13.

Serve documents through a route that adds the language and the versions:

// routes/web.php
use App\Http\Controllers\DocumentsController;

Route::get('/{locale}/{folder}/{document}.pdf', [DocumentsController::class, 'show'])
    ->whereIn('locale', ['fr', 'de'])
    ->name('documents.show');
// app/Http/Controllers/DocumentsController.php
namespace App\Http\Controllers;

use App\Models\Document;
use Symfony\Component\HttpFoundation\BinaryFileResponse;

class DocumentsController extends Controller
{
    public function show(string $locale, string $folder, string $document): BinaryFileResponse
    {
        $file = Document::query()
            ->where('locale', $locale)
            ->where('path', "{$folder}/{$document}.pdf")
            ->firstOrFail();

        $alternates = $file->translations()
            ->map(fn (Document $translation): string => "<{$translation->url()}>; rel=\"alternate\"; hreflang=\"{$translation->locale}\"")
            ->implode(', ');

        return response()->file(storage_path("app/documents/{$file->storage_name}"), [
            'Content-Type' => 'application/pdf',
            'Content-Language' => $locale,
            'Link' => $alternates,
        ]);
    }
}

translations() must return every version, including the current document, so that the header is identical everywhere. Adapt the Document model to your storage.

Next.js

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

Put the files in public/ and declare the headers in next.config.js:

// next.config.js
const guideInfusion = [
  '<https://example.com/fr/documents/guide-infusion.pdf>; rel="alternate"; hreflang="fr"',
  '<https://example.com/de/dokumente/aufguss-ratgeber.pdf>; rel="alternate"; hreflang="de"',
].join(', ');

module.exports = {
  async headers() {
    return [
      { source: '/fr/documents/guide-infusion.pdf', headers: [{ key: 'Link', value: guideInfusion }, { key: 'Content-Language', value: 'fr' }] },
      { source: '/de/dokumente/aufguss-ratgeber.pdf', headers: [{ key: 'Link', value: guideInfusion }, { key: 'Content-Language', value: 'de' }] },
    ];
  },
};

On Vercel, these headers also apply to static files. For a static export (output: 'export'), declare them with your host.

Common mistakes

  • Translating the PDF text but forgetting the metadata: the title shown by Google stays “Guide d'infusion v3 final”.
  • Linking the same French PDF from every version without saying so.
  • Replacing the source file with its translation at the same URL: the French version disappears and its links point to a German document.
  • Translated PDF exported as images from a layout tool: no indexable text.
  • Link headers that differ from one version to another, or the current version missing from the list.
  • Forgetting secondary documents: user manuals, safety data sheets, return forms, price lists.
  • Keeping contact details from the original country (phone number, return address) in the translated version.

Frequently asked questions

Should every PDF on a multilingual site be translated?

No. Give priority to documents that help sell, use the product or meet an obligation: data sheets, user manuals, high-traffic guides, terms of sale. A document with no use for the market can stay in its original language, but say so in the link from the other versions. If its content matters, publish the essentials in HTML in the target language.

How do you tell Google about the language versions of a PDF?

A PDF has no head tag, so no hreflang link tag. Instead, Google accepts an HTTP Link header that lists each version with rel="alternate" and its hreflang code, and explicitly mentions PDFs in its documentation. Each version must return exactly the same header, current version included. It is configured on the web server, the CDN or in the application.

Does Google use a PDF's metadata title?

Yes. According to Google Search Central, the title shown for a PDF relies mainly on the file's title metadata and on the text of the links pointing to it. For a translated document, set a title in the target language in the document properties and use a translated, descriptive link anchor rather than “Download”. Google remains free to choose a different title.

Should a PDF's file name be translated?

It is recommended for a translated document. The file name forms the document's URL, visible in results and in shared links: aufguss-ratgeber.pdf is clearer to a German reader than guide-infusion-DE.pdf. The effect on rankings is small. Use lowercase letters, hyphens and no accents, and do not rename a file that is already published without redirecting the old URL.

Updated on

Topic checklist (PDF)

And now?

In the “Translating SEO elements” topic

  1. Translate titles and meta descriptions
  2. Translate H1/H2/H3 headings
  3. Translate the main content
  4. Translate slugs
  5. Translate ALT text and captions
  6. Translate anchors, menus and footer
  7. Translate breadcrumbs and FAQs
  8. Translate text properties in structured data
  9. Translate Open Graph and set og:locale
  10. Translate CTAs and forms
  11. Translate error messages and 404 pages
  12. Translate cookie banners
  13. Translate downloadable documents
  14. Translate subtitles and transcripts
  15. Translate dynamic content and CMS plugins
  16. Check text embedded in images
  17. Detect untranslated strings