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
| Name | Type | Access | Description |
|---|---|---|---|
name | `` | Read | Gets the name. |
page_index | `` | Read | Gets the page index. |
data | `` | Read | Gets the data. |
Methods
| Signature | Description |
|---|---|
__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. |