1.07 de.donmanfred.Configuratorwrapper Configurator com.github.barteksc.pdfviewer.PDFView.Configurator process loadComplete(pages As Int) onPageChanged(oldPage As Int, newPage As Int) onInitiallyRendered(page As Int) PageNum(page As Int) Show() onLayerDrawn(cnvs As Canvas, arg1 As Float, arg2 As Float, arg3 As Int) onPageScrolled(arg0 As Int, arg1 As Float) onTap(event As Object) LinkEvent(link As Map) pageSnap de.donmanfred.Configuratorwrapper pageSnap boolean defaultPage de.donmanfred.Configuratorwrapper defaultPage int pageFitPolicy de.donmanfred.Configuratorwrapper pageFitPolicy com.github.barteksc.pdfviewer.util.FitPolicy pageFling de.donmanfred.Configuratorwrapper pageFling boolean addOnRenderListener de.donmanfred.Configuratorwrapper IsInitialized boolean addOnPageChangeListener de.donmanfred.Configuratorwrapper enableAnnotationRendering de.donmanfred.Configuratorwrapper annotationRendering boolean password de.donmanfred.Configuratorwrapper password java.lang.String pages de.donmanfred.Configuratorwrapper pageNumbers int spacing de.donmanfred.Configuratorwrapper spacing int load de.donmanfred.Configuratorwrapper addOnDrawListener de.donmanfred.Configuratorwrapper addOnErrorListener de.donmanfred.Configuratorwrapper enableSwipe de.donmanfred.Configuratorwrapper enableSwipe boolean swipeHorizontal de.donmanfred.Configuratorwrapper swipeHorizontal boolean enableAntialiasing de.donmanfred.Configuratorwrapper antialiasing boolean addOnLoadCompleteListener de.donmanfred.Configuratorwrapper addLinkHandler de.donmanfred.Configuratorwrapper addOnTapListener de.donmanfred.Configuratorwrapper addScrollHandle de.donmanfred.Configuratorwrapper enableDoubletap de.donmanfred.Configuratorwrapper enableDoubletap boolean autoSpacing de.donmanfred.Configuratorwrapper autoSpacing boolean SetEventname void ba anywheresoftware.b4a.BA EventName java.lang.String addOnPageErrorListener de.donmanfred.Configuratorwrapper addOnPageScrollListener de.donmanfred.Configuratorwrapper nightMode de.donmanfred.Configuratorwrapper nightMode boolean de.donmanfred.PdfDocumentMetawrapper PdfDocumentMeta com.shockwave.pdfium.PdfDocument.Meta process IsInitialized boolean CreationDate java.lang.String Keywords java.lang.String Producer java.lang.String Title java.lang.String Creator java.lang.String ModDate java.lang.String Subject java.lang.String de.donmanfred.PdfDocumentwrapper PdfDocument com.shockwave.pdfium.PdfDocument process hasPage boolean index int IsInitialized boolean Initialize void doc com.shockwave.pdfium.PdfDocument de.donmanfred.PdfiumCorewrapper PdfiumCore process getPageCount Get total numer of pages in document int doc com.shockwave.pdfium.PdfDocument renderPageBitmap Render page fragment on {@link Bitmap}. Page must be opened before rendering. Supported bitmap configurations: ARGB_8888 - best quality, high memory usage, higher possibility of OutOfMemoryError RGB_565 - little worse quality, twice less memory usage void doc com.shockwave.pdfium.PdfDocument bitmap java.lang.Object pageIndex int startX int startY int drawSizeX int drawSizeY int closeDocument Release native resources and opened file void doc com.shockwave.pdfium.PdfDocument getNumFd int fdObj ParcelFileDescriptor Initialize void ba anywheresoftware.b4a.BA EventName java.lang.String openPage Open page and store native pointer in {@link PdfDocument} long doc com.shockwave.pdfium.PdfDocument pageIndex int getPageHeight Get page height in pixels. <br> This method requires page to be opened. int doc com.shockwave.pdfium.PdfDocument index int getPageWidthPoint Get page width in PostScript points (1/72th of an inch).<br> This method requires page to be opened. int doc com.shockwave.pdfium.PdfDocument index int newDocument2 Create new document from bytearray com.shockwave.pdfium.PdfDocument data byte[] onPageChanged void arg0 int arg1 int newDocument3 Create new document from bytearray with password com.shockwave.pdfium.PdfDocument data byte[] password java.lang.String newDocument com.shockwave.pdfium.PdfDocument path java.lang.String filename java.lang.String mode int password java.lang.String getPageWidth Get page width in pixels. <br> This method requires page to be opened. int doc com.shockwave.pdfium.PdfDocument index int getPageHeightPoint Get page height in PostScript points (1/72th of an inch).<br> This method requires page to be opened. int doc com.shockwave.pdfium.PdfDocument index int mapRectToDevice Return type: @return:mapped coordinates RectF doc com.shockwave.pdfium.PdfDocument pageIndex int startX int startY int sizeX int sizeY int rotate int coords RectF getDocumentMeta Get metadata for given document com.shockwave.pdfium.PdfDocument.Meta doc com.shockwave.pdfium.PdfDocument renderPage2 Render page fragment on {@link Surface}. This method allows to render annotations. Page must be opened before rendering. void doc com.shockwave.pdfium.PdfDocument surface Surface pageIndex int startX int startY int drawSizeX int drawSizeY int renderAnnot boolean getTableOfContents Get table of contents (bookmarks) for given document java.util.List doc com.shockwave.pdfium.PdfDocument renderPage Render page fragment on {@link Surface}. Page must be opened before rendering. void doc com.shockwave.pdfium.PdfDocument surface Surface pageIndex int startX int startY int drawSizeX int drawSizeY int renderPageBitmap2 Render page fragment on {@link Bitmap}. This method allows to render annotations.<br> Page must be opened before rendering. <p> For more info see {@link PdfiumCore#renderPageBitmap(PdfDocument, Bitmap, int, int, int, int, int)} void doc com.shockwave.pdfium.PdfDocument bitmap Bitmap pageIndex int startX int startY int drawSizeX int drawSizeY int renderAnnot boolean getPageSize Get size of page in pixels.<br> This method does not require given page to be opened. com.shockwave.pdfium.util.Size doc com.shockwave.pdfium.PdfDocument index int onPageError void arg0 int arg1 java.lang.Throwable loadComplete void arg0 int mapPageCoordsToDevice Map page coordinates to device screen coordinates doc: pdf document pageIndex: index of page startX: left pixel position of the display area in device coordinates startY: top pixel position of the display area in device coordinates sizeX: horizontal size (in pixels) for displaying the page sizeY: vertical size (in pixels) for displaying the page rotate: page orientation: 0 (normal), 1 (rotated 90 degrees clockwise), 2 (rotated 180 degrees), 3 (rotated 90 degrees counter-clockwise) pageX: X value in page coordinates pageY: Y value in page coordinate Return type: @return:mapped coordinates Point doc com.shockwave.pdfium.PdfDocument pageIndex int startX int startY int sizeX int sizeY int rotate int pageX double pageY double getPageLinks Get all links from given page java.util.List doc com.shockwave.pdfium.PdfDocument pageIndex int de.donmanfred.PdfSizewrapper PdfSize com.shockwave.pdfium.util.Size process equals boolean obj java.lang.Object IsInitialized boolean Initialize void width int height int Height int Width int de.donmanfred.PDFViewwrapper PDFView com.github.barteksc.pdfviewer.PDFView activity DesignerCreateView void base anywheresoftware.b4a.objects.PanelWrapper lw anywheresoftware.b4a.objects.LabelWrapper props anywheresoftware.b4a.objects.collections.Map zoomCenteredTo Change the zoom level, relatively to a pivot point. It will call moveTo() to make sure the given point stays in the middle of the screen. zoom: The zoom level. pivot: The point on the screen that should stays. void zoom float pivot PointF loadPages Load all the parts around the center of the screen, taking into account X and Y offsets, zoom level, and the current page displayed void IsInitialized boolean Initialize void ba anywheresoftware.b4a.BA EventName java.lang.String fromFile Use a file as the pdf source path: filename: com.github.barteksc.pdfviewer.PDFView.Configurator path java.lang.String filename java.lang.String toRealScale float size float moveRelativeTo Move relatively to the current position. dx: The X difference you want to apply. dy: The Y difference you want to apply. void dx float dy float SetLayout void arg0 int arg1 int arg2 int arg3 int recycle void moveTo2 Move to the given X and Y offsets, but check them ahead of time to be sure not to go outside the the big strip. offsetX: The big strip X offset to use as the left border of the screen. offsetY: The big strip Y offset to use as the right border of the screen. moveHandle: whether to move scroll handle or not void offsetX float offsetY float moveHandle boolean toCurrentScale float size float zoomWithAnimation2 void centerX float centerY float scale float RemoveView void jumpTo2 Go to the given page. page: Page index. void page int withAnimation boolean Invalidate3 void arg0 int arg1 int arg2 int arg3 int doPageFling boolean Invalidate2 void arg0 android.graphics.Rect SetBackgroundImageNew anywheresoftware.b4a.objects.drawable.BitmapDrawable arg0 android.graphics.Bitmap onBitmapRendered Called when a rendering task is over and a PagePart has been freshly created. part: The created PagePart. void part com.github.barteksc.pdfviewer.model.PagePart getPageSize com.shockwave.pdfium.util.SizeF pageIndex int fromSource Use custom source as pdf source com.github.barteksc.pdfviewer.PDFView.Configurator docSource com.github.barteksc.pdfviewer.source.DocumentSource RequestFocus boolean stopFling void getLinks Will be empty until document is loaded java.util.List page int getPageAtPositionOffset Get page number at given offset positionOffset: scroll offset between 0 and 1 Return type: @return:page number at given offset, starting from 0 int positionOffset float jumpTo void page int doAutoSpacing boolean fromAsset Use an asset file as the pdf source com.github.barteksc.pdfviewer.PDFView.Configurator assetName java.lang.String performPageSnap Animate to the nearest snapping position for the current SnapPolicy void zoomTo Change the zoom level void zoom float resetZoomWithAnimation void enableAnnotationRendering void annotationRendering boolean doPageSnap boolean BringToFront void SendToBack void fromBytes Use bytearray as the pdf source, documents is not saved com.github.barteksc.pdfviewer.PDFView.Configurator bytes byte[] doRenderDuringScale boolean SetVisibleAnimated void arg0 int arg1 boolean enableAntialiasing void enableAntialiasing boolean setPositionOffset2 progress: must be between 0 and 1 moveHandle: whether to move scroll handle void progress float moveHandle boolean resetZoom void zoomCenteredRelativeTo void dzoom float pivot PointF fromStream Use stream as the pdf source. Stream will be written to bytearray, because native code does not support Java Streams com.github.barteksc.pdfviewer.PDFView.Configurator stream java.io.InputStream SetColorAnimated void arg0 int arg1 int arg2 int fromUri Use URI as the pdf source, for use with content providers com.github.barteksc.pdfviewer.PDFView.Configurator path java.lang.String filename java.lang.String enableRenderDuringScale void renderDuringScale boolean zoomWithAnimation void scale float fitToWidth void page int Invalidate void useBestQuality void bestQuality boolean SetLayoutAnimated void arg0 int arg1 int arg2 int arg3 int arg4 int moveTo void offsetX float offsetY float MinZoom float minZoom float PositionOffset float progress float Get current position as ratio of document length to visible area. 0 means that document start is visible, 1 that document end is visible PageFitPolicy com.github.barteksc.pdfviewer.util.FitPolicy MidZoom float midZoom float Left int arg0 int Parent java.lang.Object TableOfContents java.util.List Will be empty until document is loaded AnnotationRendering boolean PageSnap pageSnap boolean SpacingPx int PageFling pageFling boolean SwipeEnabled boolean enableSwipe boolean DocumentMeta com.shockwave.pdfium.PdfDocument.Meta Returns null if document is not loaded Visible boolean arg0 boolean CurrentXOffset float Zoom float Padding int[] arg0 int[] Height int arg0 int Width int arg0 int pageFillsScreen boolean documentFitsView boolean Checks if whole document can be displayed on screen, doesn't include zoom CurrentYOffset float BestQuality boolean SwipeVertical boolean Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Zooming boolean Color arg0 int Enabled boolean arg0 boolean Recycled boolean NightMode nightMode boolean Antialiasing boolean PageCount int Top int arg0 int CurrentPage int Tag java.lang.Object arg0 java.lang.Object MaxZoom float maxZoom float 1.04 Bartosz Schiller (Pdfium), DonManfred(wrap) Pdfium.aar android-pdf-viewer.aar