---
updatedAt: 2026-05-11T11:06:04.000Z
agentTools:
  projectIndex: https://docs.ocrolus.com/llms.txt
---

# Document

****

A document in Ocrolus is a key element that includes several important attributes to ensure comprehensive tracking and processing. Each document has a unique identification number called `pk` or `uuid`. It is an essential element to identify a document within a Book. The `name` attribute represents the filename of the document whereas the `page_count` indicates the total number of pages in the document.

Similarly, the `status` attribute shows the current processing status of the document to understand whether it has been processed successfully or if there are any issues. For additional security and integrity checks, the `md5` attribute contains the MD5 checksum of the file to ensure that the document has not been altered. If a document is rejected, the `rejection_reason` attribute will show the cause of why the document was not accepted.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Data type",
    "h-2": "Description",
    "0-0": "`pk`",
    "0-1": "<<glossary:PK>>",
    "0-2": "Unique identification number of the Book.",
    "1-0": "`name`",
    "1-1": "Text",
    "1-2": "Filename of Document",
    "2-0": "`page_count`",
    "2-1": "Integer",
    "2-2": "Total pages in a Document",
    "3-0": "`status`",
    "3-1": "[Document Status](https://docs.ocrolus.com/ocrolus-api/docs/document-status)",
    "3-2": "Processing status of Document",
    "4-0": "`md5`",
    "4-1": "Text",
    "4-2": "MD5 Checksum of file",
    "5-0": "`rejection_reason`",
    "5-1": "Text",
    "5-2": "Reason why a Document was rejected.  \nOnly present when Document `status` = `REJECTED`."
  },
  "cols": 3,
  "rows": 6,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]