IPWorks ZIP 2020 Python Edition

Questions / Feedback?

on_characters Event

Fired for plain text segments of the input stream.


class OfficeDocCharactersEventParams(object):
  def text() -> str: ...

# In class OfficeDoc:
def on_characters() -> Callable[[OfficeDocCharactersEventParams], None]: ...
def on_characters(event_hook: Callable[[OfficeDocCharactersEventParams], None]) -> None: ...


The on_characters event provides the plain text content of the XML document (i.e. the text inside the tags). The text is provided through the Text parameter.

The text includes white space as well as end of line characters, except for ignorable whitespace which is fired through the on_ignorable_whitespace event.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 7720]