> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/annotations/document-and-pdf-annotation.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Document & PDF Annotation

Annotate native PDF text, images, tables, regions, pages, relations, and document properties without losing document context.

Choose the tool according to what your downstream system needs to recover. A box locates a printed value on a page. On a PDF with a text layer, Unitlab can also create a box from the selected words. Scanned pages often require drawing around the visual region.

## See it in action

Fields, tables and regions labeled on a multipage PDF.

{% embed url="<https://homepage-files.s3.us-east-2.amazonaws.com/hero-videos/hero/document-annotation-1.mp4>" %}

## Box the field values on a PDF

1. Open `event-summary.pdf`. Locate the event name, catalog ID, and magnitude on page 1.
2. Choose **Bounding box** and a compatible class, **Field value** in this example. Drag from one corner of the printed event value to the opposite corner. Keep the field heading and table rule outside the box.
3. Repeat for the catalog ID and magnitude. Zoom in on the short value **7.1** and confirm both digits and the decimal point are inside the box.
4. Select each object in turn. Check its page, class and bounds. Use one object per field so that each value can be recovered separately.

![Three rectangles around values in a PDF event summary, each leaving the field heading outside](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FyRabCF2abXvFhKjGm0mr%2Fpdf-field-boxes.webp?alt=media)

[Download the practice PDF and companion files](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FcSikgDvBTGGCq6ea81kd%2Fridgecrest-practice-files.zip?alt=media). This example document was prepared from the [USGS Ridgecrest event record](https://earthquake.usgs.gov/earthquakes/eventpage/ci38457511).

Form-understanding datasets pair text with its page location. FUNSD provides a worked example with a registration field and its answer, including boxes and links. The USGS practice form uses a local **Field value** class. [FUNSD annotation format](https://guillaumejaume.github.io/FUNSD/description/)

## Create a box from embedded text

Choose **Select PDF Text** (D). Drag across the date and time in the **Origin (UTC)** row, then select **Create bbox**. Check the new Field value entry in **Objects**. This saves page geometry around the selection. For a scanned page without a text layer, draw the box manually.

![Create bbox button above the selected timestamp in the PDF text layer](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FsjBp8ZbOHmNdiVqGBJm5%2Fpdf-create-bbox.webp?alt=media)

## Select the right evidence

| What you need                  | How to capture it                                                                                                                                            |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Exact characters               | Use the text layer to select and copy the characters. Use **Create bbox** only when the task also needs their page location. Check reading order in columns. |
| Position on a form or scan     | Draw around the visible value, signature, figure or stamp using the configured geometry. Follow the team's rule for whitespace around a value.               |
| A link between two regions     | Label the regions separately and add the configured relation. Check its direction, especially for key-to-value or figure-to-caption links.                   |
| A value for the whole document | Use **Item properties**. A classification that describes the entire PDF belongs at document scope.                                                           |

For a multipage file, use the page controls within the document. The work-item navigator in the header moves between assets. Include the page number and field name in review comments so the annotator can find the exact region. For a PDF displayed alongside a medical scan, see [Medical study and clinical document](https://docs.unitlab.ai/documentation/multimodal-annotations/medical-study-and-clinical-document.md).

## Related

* [HTML annotation](https://docs.unitlab.ai/documentation/annotations/html-annotation.md) · [Text annotation](https://docs.unitlab.ai/documentation/annotations/text-annotation.md) · [Media and document layouts](https://docs.unitlab.ai/documentation/multimodal-annotations/media-and-document-layouts.md)
