AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

The Pdf viewer support fold devices

Open malaynagarro opened this issue 1 year ago • 0 comments

fun PdfViewer(
    uri: Uri,
    modifier: Modifier = Modifier,
    onError: () -> Unit
) {
    AndroidView(
        factory = {
            PDFView(it, null).apply {
                fromUri(uri).onRender { _, _, _ ->
                    fitToWidth()
                }
                    .onError { onError() }
                    .load()
            }
        },
        modifier = modifier
    )
}```

the above works fine with the normal phone but it uses to create error on Samsung fold 5 devices and Samsung high ends phone like Samsung s23 ultra

malaynagarro avatar Aug 20 '24 18:08 malaynagarro