PageImage

open class PageImage

Represents an image to be added to a PDF page.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull fileUri: Uri, @NonNull position: PagePosition)
Page image from an existing file.
constructor(@NonNull bitmap: Bitmap, @NonNull position: PagePosition)
Page image from a bitmap.
constructor(@NonNull context: Context, @NonNull fileUri: Uri, @NonNull rect: RectF)
Page image from an existing file.
constructor(@NonNull bitmap: Bitmap, @NonNull rect: RectF)
Page image from a bitmap.

Properties

Link copied to clipboard
The alignment position of the image on the page.
Link copied to clipboard
The positioning rectangle for the image in PDF points.
Link copied to clipboard
@IntRange(from = "-270", to = 270)
@get:IntRange(from = "-270", to = 270)
open var rotation: Int
The rotation angle in degrees (0, 90, 180, 270, or their negatives).
Link copied to clipboard
The z-order determining whether image is rendered in foreground or background.

Functions

Link copied to clipboard
open fun setJpegQuality(@IntRange(from = 0, to = 100) quality: Int)
Sets quality for image if it has to be re-compressed to JPEG.
Link copied to clipboard
open fun toString(): String
Returns a string representation of this page image including URI, position, quality, and z-order.