> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encord.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Documents

## Label Editor Document Support

The Label Editor supports the following document file types:

* PDF (.pdf)

### Document Label Support

Documents support the following label types:

* Bounding boxes
* Rotatable bounding boxes
* Polylines
* Object primitives
* Keypoint
* Polygons
  <Tip>Polygons support the **PDF text** option on text attributes in your Ontology. This feature automatically populates the text attribute with the text specified by the polygon.</Tip>
* Classifications

<Note>Bitmasks are not available for PDF files.</Note>

<Tip>
  * We recommend adding attributes to your label types when creating your Ontology for labeling documents.
  * The color you specify for each object label in your Ontology can make a big difference in the ease and effectiveness of labeling items. For example, lighter colors are more difficult to see on a white background.
</Tip>

## Label Documents

**Label display** settings can help provide a better labeling experience for each annotator.

<iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/b0555965ea55457db664dab2fa965405?sid=b4d81290-e766-4404-8b78-af590121c92a" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

<Tip>Press and hold the <kbd>SHIFT</kbd> key while using your mouse/trackpad to move around each page of a document.</Tip>

### Label PDFs

Annotate supports the following label types for PDFs:

* Bounding boxes
* Rotatable bounding boxes
* Polylines
* Object primitives
* Keypoint
* Polygons
  <Tip>Polygons support the **PDF text** option on text attributes in your Ontology. This feature automatically populates the text attribute with the text specified by the polygon.</Tip>
* Classifications

<Note>
  - Classifications support being applied on a range of pages in a PDF.
</Note>

<Tip>
  Use the **Show text outline** feature when labeling documents to streamline your annotation process. When used with object label hotkeys, labeling becomes a smooth efficient process.

  <iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/c65f1a6b8a80432d9fdf4613f2b7d1ce?sid=a93cb0dd-bce8-4d87-b4c6-23359655e805" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Tip>

#### Polygons

<Tip>Polygons support the **PDF text** option on text attributes in your Ontology. This feature automatically populates the text attribute with the text specified by the polygon.</Tip>

1. Click the **Show text outline** button to enable the feature.

2. Highlight the text you want selected for annotation.

3. Press the hotkey for the polygon object label.

   The polygon appears automatically around the highlighted text.
   <Note>Enabling the *PDF text* feature on a Text attribute on the Polygon object, automatically populates the Text attribute when the label applies.</Note>

4. Continue annotating the PDF.

5. Click **Submit** when you finish annotating the PDF.

<iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/e9473afc43bb46429ef8f9626ce420c5?sid=2822f04f-aaf4-46e5-bdfe-4b76e82d190c" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

#### Bounding Boxes

1. Click the **Show text outline** button to enable the feature.

2. Highlight the text you want selected for annotation.

3. Press the hotkey for the bounding box object label.

   The bounding box appears automatically around the highlighted text.

4. Continue annotating the PDF.

5. Click **Submit** when you finish annotating the PDF.

<iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/d8fbd724a2a34e51925394d651af970c?sid=c1c558d2-2029-425f-a3c4-36e3dc53fa83" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

### Using Relation Text Attributes - PDFs

Relation text attributes link an object to another object. In images or videos this could be linking a chicken's body to its wing. In PDFs or text documents (text or HTML files) this could be linking words with measurements, or linking words with other words.

<Note>
  Your Ontology must MUST contain text attributes with the Relation feature enabled if you want to use relation text attributes.

  ![Add Relation Text Attribute](https://storage.googleapis.com/docs-media.encord.com/static/img/ontologies/annotate-ontology-link-objects.gif)
</Note>

While annotating, you can create a relationship between any object with a relation text attribute and any other object. After you create a relation between objects a workflow arrow points from the object with the relation text attribute to the other object.

![Link objects](https://storage.googleapis.com/docs-media.encord.com/static/img/ontologies/annotate-pdf-relationship.gif)

### Using PDF Text Attribute - PDFs

The **PDF text** automatically populates the **text attribute** with the text specified in the **polygon**.

<Note>
  Your Ontology must have the following to use the **PDF text** feature:

  * Polygon
  * Text attribute on the polygon
</Note>

<iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/bd63c1a3262a4b8b8ecb3c96f03decf8?sid=395de553-289d-484f-bfed-2b6a49f7b9bb" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
