Package com.pspdfkit.compose.ui
Class DocumentPageKt
-
- All Implemented Interfaces:
public final class DocumentPageKt
-
-
Method Summary
Modifier and Type Method Description final static Unit
SingleDocument(Bitmap bitmap, ZoomState localZoomState, Size pageSize, Function2<Offset, Float, Unit> onLongPress, Function1<Offset, Unit> onTap, Function1<BoxScope, Unit> scrollbars, Function1<BoxScope, Unit> content)
Independent Composable that displays pdf bitmap and has text selection feature. final static Matrix
calculatePdfToViewMatrix(Size pageSize, Float scaleFactor)
Calculate the matrix to transform PDF coordinates to view coordinates. final static Unit
DocumentPage(Bitmap bitmap, Modifier modifier, String description)
inner Pdf page used to render bitmap -
-
Method Detail
-
SingleDocument
@Composable() final static Unit SingleDocument(Bitmap bitmap, ZoomState localZoomState, Size pageSize, Function2<Offset, Float, Unit> onLongPress, Function1<Offset, Unit> onTap, Function1<BoxScope, Unit> scrollbars, Function1<BoxScope, Unit> content)
Independent Composable that displays pdf bitmap and has text selection feature.
-
calculatePdfToViewMatrix
final static Matrix calculatePdfToViewMatrix(Size pageSize, Float scaleFactor)
Calculate the matrix to transform PDF coordinates to view coordinates.
- Parameters:
pageSize
- The size of the page in pdf pointsscaleFactor
- The scale factor to apply to the page
-
DocumentPage
@Composable() final static Unit DocumentPage(Bitmap bitmap, Modifier modifier, String description)
inner Pdf page used to render bitmap
-
-
-
-