OfficeDocumentValidationModel
dorsal.file.validators.office_document.OfficeDocumentValidationModel
pydantic-model
Bases: BaseModel
Main validation model for the OfficeDocumentAnnotationModel. This structure combines all common and format-specific metadata.
Fields:
-
author(TString4096 | None) -
last_modified_by(TString4096 | None) -
title(TString4096 | None) -
subject(TString4096 | None) -
keywords(list[TString4096]) -
revision(int | None) -
creation_date(datetime | None) -
modified_date(datetime | None) -
application_name(TString4096 | None) -
application_version(TString4096 | None) -
template(TString4096 | None) -
structural_parts(list[TString4096]) -
has_comments(bool | None) -
custom_properties(dict[TString4096, Any]) -
language(TString4096 | None) -
language_code(TString4096 | None) -
locale_code(TString4096 | None) -
default_font(TString4096 | None) -
all_fonts(list[TString4096]) -
is_password_protected(bool) -
word(WordProperties | None) -
excel(ExcelProperties | None) -
powerpoint(PowerPointProperties | None)
application_name
pydantic-field
The name of the application that created the file.
application_version
pydantic-field
The version of the application that created the file.
has_comments
pydantic-field
True if the document package contains a comments part.
is_password_protected
pydantic-field
True if the file is zip-encrypted (password protected).
language
pydantic-field
The normalized, human-readable language name (e.g., 'English').
language_code
pydantic-field
The ISO 639-3 alpha-3 language code (e.g., 'eng').
structural_parts
pydantic-field
A list of all content types defined in the package.