Document

문서별 facade — 텍스트, 커서, 컬렉션.

노트

API 시그니처와 docstring 은 Python 소스에서 자동 생성되어 영문으로 표시됩니다.

Document

document.Document(app)

Per-document façade for HWP operations.

Obtained via :attr:hwpapi.App.doc. Holds a reference to the owning :class:App; does not own a COM handle.

Parameters

Name Type Description Default
app hwpapi.App The owning :class:~hwpapi.core.app.App instance. required

Examples

>>> app = App()
>>> doc = app.doc              # same instance on every access
>>> len(doc.fields)            # number of 누름틀 fields
0

Attributes

Name Description
app The owning :class:App — escape hatch.
bookmarks Bookmark collection (책갈피).
fields Field collection (누름틀).
hyperlinks Hyperlink collection.
images Image collection.
paragraphs Paragraph collection (ordinal access).
styles Paragraph-style collection (minimal, see module docstring).
tables Table collection.
맨 위로