ImageRenderState
Overview
ImageRenderState 是Python的Aspose.Words FOSS中的一个类.
积器线程通过段落呈现为内线形状.
这个类提供了在Python程序中使用ImageRenderState 对象的2种方法. 有的方法包括: render_inline_shape, set_section_margins. 在安装Python包的Aspose.Words FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: doc_pr_offset, emit_wps_shapes, images, media_name_prefix, rel_id_prefix, section_left_margin_mm,另外一个.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
images | list[ImageEntry] | 阅读/写作 | 获取或设置图像. |
section_left_margin_mm | float | 阅读/写作 | 得到或设置左边的部分mm. |
section_top_margin_mm | float | 阅读/写作 | 得到或设置部分顶边缘mm. |
media_name_prefix | str | 阅读/写作 | 获取或设置媒体名称前. |
rel_id_prefix | str | 阅读/写作 | 获取或设置 rel id 前. |
doc_pr_offset | int | 阅读/写作 | 得到或设置文档的偏差. |
emit_wps_shapes | bool | 阅读/写作 | 得到或设置发射 wps 的形状. |
Methods
| Signature | Description |
|---|---|
render_inline_shape(shape: ldm.ShapeNode, rels: Optional[dict], num_id_map: Optional[Mapping[int, int]], bookmark_state: Optional[BookmarkState], style_pf_map: Optional[Mapping[str, ldm.ParagraphFormat]], style_id_map: Optional[Mapping[str, str]], style_font_map: Optional[Mapping[str, ldm.Font]]) → Optional[str] | Emit <w:r><w:drawing>…</w:drawing></w:r> 对于 shape. |
set_section_margins(page_setup: "ldm.PageSetup") | 更新缓存的部分边缘. |