LibreOffice 7.2 帮助
LibreOffice 提供应用程序编程接口 (API),允许通过 LibreOffice 软件开发套件 (SDK) 使用不同的编程语言控制 LibreOffice 组件。关于 LibreOffice API 及 SDK 的更多信息,请访问 https://api.libreoffice.org 获取
本帮助段落讲解 LibreOffice 最常见的 Python 脚本功能。要获取更多深入的信息,请参考 Wiki 中的《设计与开发 Python 应用程序》。
您可以通过选择「
」来执行 Python 脚本。脚本可使用您偏好的文本编辑器来编辑。Python 脚本存放在不同位置,下文将详细说明。您可以参考编程示例,其中有宏演示如何在 LibreOffice 中运行 Python 交互控制台。The LibreOffice scripting framework for Python is optional on some GNU/Linux distributions. If it is installed, selecting LibreOffice Macros for the presence of HelloWorld – HelloWorldPython macro is sufficient. If absent, please refer to your distribution documentation in order to install the LibreOffice scripting framework for Python.
and checking