---
title: "Where is the text? Demo"
url: https://sharadbapat.com/experiments/where-is-the-text/demo/
description: "Drop in a born-digital PDF: pdf.js draws each page, and every word wordbox reads from the file is boxed on top and listed beside it."
published: 2026-09-27
author: Sharad Bapat
---

[Where is the text?](https://sharadbapat.com/experiments/where-is-the-text/)

# Where is the text? Demo

pdf.js draws the page. Every word wordbox reads from the file is boxed on top of it and listed beside it, and hovering either one lights up both.

This demo needs JavaScript. It reads a PDF you choose in this page, with nothing uploaded, draws each page with pdf.js, and boxes every word wordbox finds in the file.

Boxes with a solid edge are the page's own text. Dashed boxes come from annotations and form fields, dotted ones from invisible text such as an OCR layer, and red ones hold characters the file doesn't decode. The write-up explains how it works and how it was tested.
