built_in_document_properties property
PlainTextDocument.built_in_document_properties property
Gets PlainTextDocument.built_in_document_properties of the document.
@property
def built_in_document_properties(self) -> aspose.words.properties.BuiltInDocumentProperties:
...
Examples
Shows how to load the contents of a Microsoft Word document in plaintext and then access the original document’s built-in properties.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
builder.writeln('Hello world!')
doc.built_in_document_properties.author = 'John Doe'
doc.save(file_name=ARTIFACTS_DIR + 'PlainTextDocument.BuiltInProperties.docx')
plaintext = aw.PlainTextDocument(file_name=ARTIFACTS_DIR + 'PlainTextDocument.BuiltInProperties.docx')
self.assertEqual('Hello world!', plaintext.text.strip())
self.assertEqual('John Doe', plaintext.built_in_document_properties.author)
See Also
- module aspose.words
- class PlainTextDocument