## clear() {#default} Removes all elements from the collection. ```python def clear(self): ... ``` ### Examples Shows how To set outline levels for bookmarks. ```python Doc = aw.Document() builder ......```python doc = aw.Document() builder = aw.DocumentBuilder(doc=doc)...end_bookmark('Bookmark 3') # When saving to .pdf, bookmarks can be accessed via...