In the Hyland Cloud Content Repository, annotations, redaction marks, bookmarks, and comments are not stored inline inside the document they describe. Instead, each is persisted as a separate, lightweight content document that serves as a child of the parent document and carries its payload in a well-defined JSON schema.
When working with these content documents, also note the following:
- The parent document is marked with a mixin that advertises what it supports.
- Each annotation, redaction mark, bookmark, and comment is its own child document that extends SysContent and uses the SysVersionedWithParent mixin; consequently, the child document is versioned with the parent.
- Each child document type has a dedicated schema that defines its JSON shape.
- The design preserves the parent document while allowing an arbitrary number of annotations, bookmarks, or comments to be added, versioned, and queried independently.
Parent Mixins
The parent document declares what it supports through the following mixins.
The SysMDAnnotatable mixin declares support for annotations as its child documents:
"SysMDAnnotatable": {
"schemas": [
"sysmdannotatable"
]
}
Simiilarly, the SysMDRedactable mixin declares support for redaction marks as its child documents:
"SysMDRedactable": {
"schemas": [
"sysmdredactable"
]
}
Parent Schemas
The SysMDAnnotatable mixin is backed by the sysmdannotatable schema:
"sysmdannotatable": {
"prefix": "sysmdannotatable",
"fields": {
"sysmdannotatable_state": "string"
}
}
Note the schema's body details:
| Property | Description | Type | Notes |
|---|---|---|---|
| state | The state of the document. | string | Values include annotated and unannotated. |
Similarly, the SysMDRedactable mixin is backed by the sysmdredactable schema:
"sysmdredactable": {
"prefix": "sysmdredactable",
"fields": {
"sysmdredactable_sourceDocumentId": "string",
"sysmdredactable_state": "string"
}
}
Note the schema's body details:
| Property | Description | Type | Notes |
|---|---|---|---|
| sourceDocumentId | Unredacted, original document ID. | string | Values include annotated and unannotated. |
| state | The state of the document. | string | Value is the UUID of the document. |
Child Primary Types
The following categories are modeled as primary object types that are the children of the parent documents
The SysMDAnnotation primary type is backed by the sysmdanno schema:
"SysMDAnnotation": {
"extends": "SysContent",
"schemas": ["sysmdanno", "system"],
"mixins": ["SysVersionedWithParent"]
}
The SysMDBookmark primary type is backed by the sysmdbm schema:
"SysMDBookmark": {
"extends": "SysContent",
"schemas": ["sysmdbm", "system"],
"mixins": ["SysVersionedWithParent"]
}
The SysMDComment primary type is backed by the sysmdcomment schema:
"SysMDComment": {
"extends": "SysContent",
"schemas": ["sysmdcomment", "system"],
"mixins": ["SysVersionedWithParent"]
}
Child Schemas
Each of the following categories is a separate primary object type that extends SysContent.
Annotations are supported by the SysMDAnnotation primary type. An annotation is a visual element placed on a specific page of the parent document. The sysmdanno schema captures position, size, style, and type.
"sysmdanno": {
"prefix": "sysmdanno",
"fields": {
"sysmdanno_name": "string",
"sysmdanno_pageId": "long",
"sysmdanno_type": "string",
"sysmdanno_contentItemId": "string",
"sysmdanno_id": "string",
"sysmdanno_x": "double",
"sysmdanno_y": "double",
"sysmdanno_height": "double",
"sysmdanno_width": "double",
"sysmdanno_fillColor": "string",
"sysmdanno_fillable": "boolean",
"sysmdanno_stroke": "string",
"sysmdanno_opacity": "double",
"sysmdanno_resizable": "boolean",
"sysmdanno_movable": "boolean",
"sysmdanno_data": "string",
"sysmdanno_scale": "double",
"sysmdanno_fixRotation": "boolean",
"sysmdanno_additionalData": "string"
}
}
Note the schema's body details:
| Property | Description | Type | Notes |
|---|---|---|---|
| name | The name of the annotation. | string | None |
| pageId | The document page number. | long | Values must be positive integers. |
| type | The annotation type. | string | Values include redaction, line, path, text, image, ellipse, rectangle, and highlight. |
| contentItemId | Alphanumeric ID for the content item (page). | string | None |
| id | Alphanumeric ID for the annotation. | string | None |
| x | The annotation's location on the document's x-axis. | double | Values must be non-negative numbers. |
| y | The annotation's location on the document's y-axis. | double | Values must be non-negative numbers. |
| height | The annotation's height on the document. | double | Values must be non-negative numbers. |
| width | The annotation's width on the document. | double | Values must be non-negative numbers. |
| fillColor | The fill color of the annotation. | string | Values must be hexadecimal colors. |
| fillable | True/false value indicating the ability to set the annotation's background color. | Boolean | None |
| stroke | The annotation's stroke style. | string | None |
| opacity | The opacity percentage of the annotation. | double | Values are 0 to 100 in percentages. |
| resizable | True/false value indicating the ability to change the annotation's size. | Boolean | None |
| movable | True/false value indicating the ability to change the annotation's position. | Boolean | None |
| data | The annotation's data. | string | None |
| scale | The annotation's scale ranging from 10-500%. | double | Values are 0.1 to 5. |
| fixRotation | True/false value indicating the ability to rotate the annotation. | Boolean | None |
| additionalData | Additional information about the annotation. | string | None |
Depending on the annotation's type, additional mixins and their corresponding schemas apply (see Annotation Types for more information).
Bookmarks are supported by the SysMDBookmark primary type. A bookmark points at a specific page of the parent document.
"sysmdbm": {
"prefix": "sysmdbm",
"fields": {
"sysmdbm_name": "string",
"sysmdbm_pageId": "long",
"sysmdbm_additionalData": "string"
}
}
Note the schema's body details:
| Property | Description | Type | Notes |
|---|---|---|---|
| name | The name of the bookmark | string | None |
| pageId | The document page number. | long | Values must be positive integers. |
| additionalData | Additional information about the bookmark. | string | None |
Comments are supported by the SysMDComment primary type. A comment carries freeform content and tracks state and timestamps.
"sysmdcomment": {
"prefix": "sysmdcomment",
"fields": {
"sysmdcomment_content": "string",
"sysmdcomment_externalAuthor": "string",
"sysmdcomment_state": "string",
"sysmdcomment_additionalData": "string",
"sysmdcomment_date": "date",
"sysmdcomment_updatedAt": "date",
"sysmdcomment_isExternalComment": "boolean",
"sysmdcomment_externalId": "string"
}
}
Note the schema's body details:
| Property | Description | Type | Notes |
|---|---|---|---|
| content | The comment's content. | string | None |
| externalAuthor | The name of the original author of a comment that was embedded in an uploaded file, such as a PDF annotation. | string | Use this value instead of sys_creator, which is the Cloud Content Repository user who uploaded the file. |
| state | The state of the comment. | string | None |
| additionalData | Additional information about the comment. | string | None |
| date | The date the comment was created. | date | None |
| updatedAt | The date the comment was last updated. | date | None |
| isExternalComment | True/false indicator of whether the comment came from outside the Cloud Content Repository (for example, from a PDF annotation). | Boolean | If this value is true, the viewer shows externalAuthor as the author. If this value is false, the viewer shows sys_creator as the author. |
| externalId | Alphanumeric ID of the comment in the source it came from, such as the PDF annotation ID. | string | None |