original_load_format property

Document.original_load_format property

Gets the format of the original document that was loaded into this object.

@property
def original_load_format(self) -> aspose.words.LoadFormat:
    ...

Remarks

If you created a new blank document, returns the LoadFormat.DOC value.

Examples

Shows how to retrieve details of a document’s load operation.

doc = aw.Document(MY_DIR + "Document.docx")

self.assertEqual(MY_DIR + "Document.docx", doc.original_file_name)
self.assertEqual(aw.LoadFormat.DOCX, doc.original_load_format)

See Also