PdfImage class

Image object stored in the Pdf document

Constructors

PdfImage(PdfDocument pdfDocument, {required Uint8List image, required int width, required int height, bool alpha = true, PdfImageOrientation orientation = PdfImageOrientation.topLeft})
Creates a new PdfImage instance.
factory
PdfImage.file(PdfDocument pdfDocument, {required Uint8List bytes, PdfImageOrientation orientation = PdfImageOrientation.topLeft})
Create an image from an image file
factory
PdfImage.fromImage(PdfDocument pdfDocument, {required Image image, PdfImageOrientation orientation = PdfImageOrientation.topLeft})
Create an image from an im.Image object
factory
PdfImage.jpeg(PdfDocument pdfDocument, {required Uint8List image, PdfImageOrientation? orientation})
Create an image from a jpeg file
factory

Properties

buf → PdfStream
This holds the stream's content.
finalinherited
elapsedStopwatch int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height int
Image height
no setter
inUse bool
getter/setter pairinherited
isBinary bool
defines if the stream needs to be converted to ascii85
finalinherited
name String
Name of the image
no setter
objgen int
This is the generation number for this object.
finalinherited
objser int
This is the unique serial number for this object.
finalinherited
orientation PdfImageOrientation
The internal orientation of the image
final
params → PdfDict<PdfDataType>
finalinherited
pdfDocument PdfDocument
This allows any Pdf object to refer to the document being constructed.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings → PdfSettings
finalinherited
size int
getter/setter pairinherited
width int
Image width
no setter

Methods

debugFill(String value) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
output(PdfStream s) int
inherited
prepare() → void
Prepare the object to be written to the stream
inherited
ref() → PdfIndirect
Returns the unique serial number in Pdf format
inherited
setInsertion(PdfStream os, [int size = _maxSize]) → void
inherited
startStopwatch() → void
inherited
stopStopwatch() → void
inherited
toString() String
A string representation of this object.
inherited
writeContent(PdfStream s) → void
inherited
writeDebug(PdfStream os) → void
inherited

Operators

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