IPWorks ZIP 2020 Python Edition

Questions / Feedback?

on_pi Event

Fired when a processing instruction section is encountered.

Syntax

class OfficeDocPIEventParams(object):
  @property
  def text() -> str: ...

# In class OfficeDoc:
@property
def on_pi() -> Callable[[OfficeDocPIEventParams], None]: ...
@on_pi.setter
def on_pi(event_hook: Callable[[OfficeDocPIEventParams], None]) -> None: ...

Remarks

The on_pi event is fired whenever a processing instruction section (<? ..text... ?>) is found in the document.

The full text of the processing instruction is provided by the Text parameter.

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