# PDFObjectType Enum

> The underlying PDF data type of a PDFObject.

- Product: Adobe PDF Library 21
- Language: Modern C++
- Version: 21.4.0
- HTML page: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/enum/PDFObjectType
- Version index: https://docs.datalogics.com/apdfl21/ModernCPP/21.4.0/llms.txt

**Namespace:** `datalogics_interface`

## Description

The underlying PDF data type of a PDFObject. Use with PDFObject::get_type() for switch-style dispatch instead of chained dynamic_cast.

## Values

- `Null = 0`: The PDF null object, or an invalid object.
- `Dict = 1`: A PDF dictionary (`PDFDict`).
- `Array = 2`: A PDF array (`PDFArray`).
- `Stream = 3`: A PDF stream (`PDFStream`).
- `String = 4`: A PDF string (`PDFString`).
- `Name = 5`: A PDF name (`PDFName`).
- `Integer = 6`: A PDF integer (`PDFInteger`).
- `Real = 7`: A PDF real number (`PDFReal`).
- `Boolean = 8`: A PDF boolean (`PDFBoolean`).
- `Unknown = 9`: Type was not recognized; should not happen in well-formed input.
