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
Image position, either gravity or actual rect
Link copied to clipboard
Link copied to clipboard
@IntRange(from = "-270", to = 270)
@get:IntRange(from = "-270", to = 270)
open var rotation: Int
Link copied to clipboard

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