ImagePlacement

ImagePlacement

Overview

ImagePlacement is a class in Aspose.PDF FOSS for Python.

Represents an image placement on a page.

This class provides 4 methods for working with ImagePlacement objects in Python programs. Available methods include: __init__, hide, replace, save. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: data, name, page_index.

Properties

NameTypeAccessDescription
name``ReadGets the name.
page_index``ReadGets the page index.
data``ReadGets the data.

Methods

SignatureDescription
__init__(name: str, page_index: int, data: bytes)Calls init(name, page_index, data) on this ImagePlacement instance.
save(path: str | Path)Save image to file.
replace(new_data: bytes)Replace image data.
hide()Mark image as hidden.

See Also