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, Integer pageIndex, ZoomState localZoomState, Size pageSize, TextSelectionState textSelectionState, DocumentTextProvider textProvider, TextSelectionDragChange textSelectionDragChange, ScrollbarConfiguration scrollbarConfiguration)
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, Integer pageIndex, ZoomState localZoomState, Size pageSize, TextSelectionState textSelectionState, DocumentTextProvider textProvider, TextSelectionDragChange textSelectionDragChange, ScrollbarConfiguration scrollbarConfiguration)
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
-
-
-
-