Document

Per-document facade β€” text, cursor, collections.

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.
Back to top