toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.document.processor
/
PageImage
Page
Image
open
class
PageImage
Represents an image to be added to a PDF page.
Members
Constructors
Page
Image
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
position
Link copied to clipboard
@
NonNull
@get:
NonNull
val
position
:
PagePosition
Image position, either gravity or actual rect
position
Rect
Link copied to clipboard
@
Nullable
@get:
Nullable
val
positionRect
:
RectF
rotation
Link copied to clipboard
@
IntRange
(
from
=
"-270"
,
to
=
270
)
@get:
IntRange
(
from
=
"-270"
,
to
=
270
)
open
var
rotation
:
Int
z
Order
Link copied to clipboard
@
NonNull
@get:
NonNull
open
var
zOrder
:
PageZOrder
Functions
set
Jpeg
Quality
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.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String