import docx
doc = docx.Document('book-proposal2.docx')
properties = doc.core_properties
properties = doc.core_properties
print(f'作成者: {properties.author}')
print(f'カテゴリ: {properties.category}')
print(f'コメント: {properties.comments}')
print(f'キーワード: {properties.keywords}')
print(f'最終編集者: {properties.last_modified_by}')
print(f'件名: {properties.subject}')
print(f'タイトル: {properties.title}')
print(f'文書の作成日時:{properties.created}')
print(f'文書の最終印刷日時: {properties.last_printed}')
print(f'文書の編集日時: {properties.modified}')
print(f'カテゴリ: {properties.category}')
print(f'コメント: {properties.comments}')
print(f'キーワード: {properties.keywords}')
print(f'最終編集者: {properties.last_modified_by}')
print(f'件名: {properties.subject}')
print(f'タイトル: {properties.title}')
print(f'文書の作成日時:{properties.created}')
print(f'文書の最終印刷日時: {properties.last_printed}')
print(f'文書の編集日時: {properties.modified}')
作成者: なかのせいこう
カテゴリ: プログラム
コメント: これは文書はプログラム勉強に関するものです。
キーワード: Python
最終編集者: nakano
件名: MS Office & PDF
タイトル: ・・・抽出
文書の作成日時:2019-06-13 12:24:00
文書の最終印刷日時: None
文書の編集日時: 2019-06-13 12:24:00
カテゴリ: プログラム
コメント: これは文書はプログラム勉強に関するものです。
キーワード: Python
最終編集者: nakano
件名: MS Office & PDF
タイトル: ・・・抽出
文書の作成日時:2019-06-13 12:24:00
文書の最終印刷日時: None
文書の編集日時: 2019-06-13 12:24:00