CPDFImageData class

Represents different types of image data for inserting into PDF

Constructors

CPDFImageData.fromAsset(String assetPath)
Create from asset path example: 'logo.png'
factory
CPDFImageData.fromBase64(String base64String)
Create from base64 encoded string example: 'iVBORw0KGgoAAAANSUhEUgAAAAUA...'
factory
CPDFImageData.fromPath(String filePath)
Create from file path example: '/data/user/0/com.example.app/cache/image.png'
factory
CPDFImageData.fromUri(String uri)
Create from Uri (Android only) example: 'content://media/external/images/media/1000'
factory

Properties

data String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CPDFImageType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited