Skip to content

PDFValidationModel

dorsal.file.validators.pdf.PDFValidationModel pydantic-model

Bases: BaseModel

Validation model for core PDF metadata.

Fields:

author pydantic-field

author = None

The primary author of the document, from the 'Author' metadata field.

creation_date pydantic-field

creation_date = None

The date and time the document was created, from the 'CreationDate' field.

creator pydantic-field

creator = None

The software tool used to create the original document (e.g., 'Word'), from the 'Creator' field.

keywords pydantic-field

keywords = None

A string of keywords associated with the document, from the 'Keywords' field.

modified_date pydantic-field

modified_date = None

The date and time the document was last modified, from the 'ModDate' field.

page_count pydantic-field

page_count = None

The total number of pages in the document.

producer pydantic-field

producer = None

The software tool used to convert or produce the final PDF (e.g., 'Acrobat PDF Library'), from the 'Producer' field.

subject pydantic-field

subject = None

The subject or topic of the document, from the 'Subject' field.

title pydantic-field

title = None

The title of the document, from the 'Title' metadata field.

version pydantic-field

version = None

The PDF version (e.g., '1.7', '2.0') as reported by the parser.