PdfView

@Composable
fun PdfView(state: KiteDocViewState, modifier: Modifier = Modifier, layout: KiteDocLayout = KiteDocLayout.Default, zoomSpec: KiteZoomSpec = KiteZoomSpec(), renderSpec: KiteRenderSpec = KiteRenderSpec.Default, colors: KiteDocViewColors = KiteDocViewColors(), pageSpacing: Dp = 8.dp, userScrollEnabled: Boolean = true, selectionEnabled: Boolean = true, onPageRendered: (pageIndex: Int, image: ImageBitmap) -> Unit? = null, pagePlaceholder: @Composable (pageIndex: Int) -> Unit? = null, overlay: @Composable BoxScope.(KiteDocViewState) -> Unit? = null, onTap: (Offset) -> Unit? = null, onLinkTap: (PdfAction) -> Boolean? = null)(source)

Deprecated

Renamed to KiteDocView. Pass the same arguments by name. onLinkTap now takes a KiteLinkAction, and KiteLinkAction.Pdf holds the PdfAction.


@Composable
fun PdfView(document: PdfDocument, modifier: Modifier = Modifier, page: Int? = null, background: Color = Color.White, pageSpacing: Dp = 8.dp, selectionEnabled: Boolean = true, onPageRendered: (pageIndex: Int, image: ImageBitmap) -> Unit? = null, onTap: (Offset) -> Unit? = null, onLinkTap: (PdfAction) -> Boolean? = null)(source)

Deprecated

Renamed to KiteDocView, which takes any KiteDocument. Pass the same arguments by name. onLinkTap now takes a KiteLinkAction, and KiteLinkAction.Pdf holds the PdfAction.