ImageRenderState

ImageRenderState

Overview

ImageRenderState is a class in Aspose.Words FOSS for Python.

Accumulator threaded through paragraph rendering for inline shapes.

This class provides 2 methods for working with ImageRenderState objects in Python programs. Available methods include: render_inline_shape, set_section_margins. All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: doc_pr_offset, emit_wps_shapes, images, media_name_prefix, rel_id_prefix, section_left_margin_mm, and 1 more.

Properties

NameTypeAccessDescription
imageslist[ImageEntry]Read/WriteGets or sets the images.
section_left_margin_mmfloatRead/WriteGets or sets the section left margin mm.
section_top_margin_mmfloatRead/WriteGets or sets the section top margin mm.
media_name_prefixstrRead/WriteGets or sets the media name prefix.
rel_id_prefixstrRead/WriteGets or sets the rel id prefix.
doc_pr_offsetintRead/WriteGets or sets the doc pr offset.
emit_wps_shapesboolRead/WriteGets or sets the emit wps shapes.

Methods

SignatureDescription
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> for shape.
set_section_margins(page_setup: "ldm.PageSetup")Update the cached section margins.

See Also