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
0Attributes
| 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. |