## TL;DR

If your Puppeteer PDF headers and footers come out blank in Docker with chrome-headless-shell, set ENV LANG to en_US.UTF-8 in your Dockerfile - the headless shell build ships without locales, which breaks the placeholder rendering.

## Steps

1. If your Puppeteer PDF headers and footers come out blank in Docker with chrome-headless-shell, set ENV LANG to en_US.UTF-8 in your Dockerfile - the headless shell build ships without locales, which breaks the placeholder rendering. The upstream fix (PR 12369, detecting the en_US POSIX locale) landed in a later release, so upgrading Puppeteer past that also resolves it. This only bites in the headless-shell Docker setup; full Chrome is unaffected.

Expected: A maintainer confirmed the cause was missing locales in the headless shell build, and reporters verified the workaround immediately.

## When to use

You are seeing this: This only bites in the headless-shell Docker setup; full Chrome is unaffected. Use this skill when you run into "Blank PDF headers in Docker headless-shell - set LANG to en_US.UTF-8".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
