Retrieves source document information, including page count and other properties specific to the file type.
defget_document_info(self):...
Returns: DocumentInfo: An object containing details about the source document, such as format, page count, creation date, size, and type‑specific properties.