A simple demo to reproduce the issue of Chromium PDF (unexpected text gap) Build & Run Run npm i to install puppeteer 2.0. Run npm start. See the difference between screenshot.png and sample.pdf