5/17/2023 0 Comments Best pdf reader for android![]() ![]() autoSpacing( false) // add dynamic spacing to fit each page on its own on the screen To define spacing color, set view background enableAntialiasing( true) // improve rendering a little bit on low-res screens // spacing between pages in dp. ![]() enableAnnotationRendering( false) // render annotations (such as comments, colors or forms) onRender( onRenderListener) // called after document is rendered for the first time // called on single tap, return true if handled, false to toggle scroll handle visibility onLoad( onLoadCompleteListener) // called after document is loaded and starts to be rendered allows to draw something on all pages, separately for every page. allows to draw something on the current page, usually visible in the middle of the screen enableSwipe( true) // allows to block changing pages using swipe pages( 0, 2, 1, 3, 3, 3) // all pages are displayed by default fromStream( InputStream) // stream is written to bytearray - native code cannot use Java Streams or pdfView. If you are using ProGuard, add following rule to proguard config file: Library is available in jcenter repository, probably it'll be in Maven Central soon. Implementation ':android-pdf-viewer:2.8.2' Or if you want to use more stable version: Implementation ':android-pdf-viewer:3.2.0-beta.1'
0 Comments
Leave a Reply. |