Package com.pspdfkit.jetpack.compose

Types

DocumentState
Link copied to clipboard
class DocumentState

A state object that can be hoisted to control and observe properties of the DocumentView. Create instances of this object using rememberDocumentState.

ExperimentalPSPDFKitApi
Link copied to clipboard
annotation class ExperimentalPSPDFKitApi

Annotation used to indicate a member is part of an experimental PSPDFKit API. Anything carrying this annotation may be changed in the future without notice.

Functions

DocumentView
Link copied to clipboard
@Composable
fun DocumentView(documentUri: Uri, modifier: Modifier = Modifier)
@Composable
fun DocumentView(documentState: DocumentState, modifier: Modifier = Modifier)

Composable that displays the Document in the specified Uri.

rememberDocumentState
Link copied to clipboard
@Composable
fun rememberDocumentState(documentUri: Uri, configuration: PdfActivityConfiguration = PdfActivityConfiguration.Builder(LocalContext.current).build(), @IntRange(from = 0) startingPage: Int = 0): DocumentState

A state object that can be hoisted to control and observe properties of the DocumentView. Returns a Saveable containing the DocumentState, used for remembering the state of a given document.