StaticfromCreate image data from a file path.
The absolute file path to the image
CPDFImageData instance
StaticfromCreate image data from a base64 encoded string.
The base64 encoded image string
CPDFImageData instance
StaticfromCreate image data from a data URI string.
The data URI string
CPDFImageData instance
StaticfromCreate image data from an asset path.
The asset path to the image (relative path in assets directory)
CPDFImageData instance
StaticfromCreate image data from an Android content Uri. This method is only applicable on Android platform.
The Android content Uri to the image
CPDFImageData instance
StaticfromCreate image data from serialized JSON.
Serialized image data object
CPDFImageData instance
Convert the image data to a JSON object for native communication.
JSON object containing type and data
Represents different types of image data for inserting into PDF.
This class provides factory methods to create image data from various sources such as file paths, base64 strings, assets, or Android content URIs.