Skip navigation links
A C D E F G H I J L M O P R S T U Z 

A

arrayToString(int[]) - Static method in class com.github.barteksc.pdfviewer.util.ArrayUtils
 
ArrayUtils - Class in com.github.barteksc.pdfviewer.util
 

C

CACHE_SIZE - Static variable in interface com.github.barteksc.pdfviewer.util.Constants.Cache
The size of the cache (number of bitmaps kept)
calculateIndexesInDuplicateArray(int[]) - Static method in class com.github.barteksc.pdfviewer.util.ArrayUtils
Transforms (0, 4, 4, 6, 6, 6, 3) into (0, 1, 1, 2, 2, 2, 3)
ceil(float) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
Returns the smallest integer greater than or equal to the specified float.
com.github.barteksc.pdfviewer - package com.github.barteksc.pdfviewer
 
com.github.barteksc.pdfviewer.exception - package com.github.barteksc.pdfviewer.exception
 
com.github.barteksc.pdfviewer.listener - package com.github.barteksc.pdfviewer.listener
 
com.github.barteksc.pdfviewer.model - package com.github.barteksc.pdfviewer.model
 
com.github.barteksc.pdfviewer.scroll - package com.github.barteksc.pdfviewer.scroll
 
com.github.barteksc.pdfviewer.util - package com.github.barteksc.pdfviewer.util
 
Constants - Interface in com.github.barteksc.pdfviewer.util
 
Constants.Cache - Interface in com.github.barteksc.pdfviewer.util
 
Constants.Pinch - Interface in com.github.barteksc.pdfviewer.util
 
context - Variable in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
copy(InputStream, File) - Static method in class com.github.barteksc.pdfviewer.util.FileUtils
 

D

DEBUG_MODE - Static variable in interface com.github.barteksc.pdfviewer.util.Constants
 
DEFAULT_MAX_SCALE - Static variable in class com.github.barteksc.pdfviewer.PDFView
 
DEFAULT_MID_SCALE - Static variable in class com.github.barteksc.pdfviewer.PDFView
 
DEFAULT_MIN_SCALE - Static variable in class com.github.barteksc.pdfviewer.PDFView
 
defaultPage(int) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
DefaultScrollHandle - Class in com.github.barteksc.pdfviewer.scroll
 
DefaultScrollHandle(Context) - Constructor for class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
DefaultScrollHandle(Context, boolean) - Constructor for class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
deleteDuplicatedPages(int[]) - Static method in class com.github.barteksc.pdfviewer.util.ArrayUtils
Transforms (0,1,2,2,3) to (0,1,2,3)
destroyLayout() - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
destroyLayout() - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Method called by PDFView when handle should be removed from layout Do not call this method manually.
documentFitsView() - Method in class com.github.barteksc.pdfviewer.PDFView
Checks if whole document can be displayed on screen, doesn't include zoom

E

enableAnnotationRendering(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
enableAnnotationRendering(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
enableDoubletap(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
enableDoubletap(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
enableSwipe(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
enableSwipe(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
equals(Object) - Method in class com.github.barteksc.pdfviewer.model.PagePart
 

F

fileFromAsset(Context, String) - Static method in class com.github.barteksc.pdfviewer.util.FileUtils
 
FileNotFoundException - Exception in com.github.barteksc.pdfviewer.exception
 
FileNotFoundException(String) - Constructor for exception com.github.barteksc.pdfviewer.exception.FileNotFoundException
 
FileNotFoundException(String, Throwable) - Constructor for exception com.github.barteksc.pdfviewer.exception.FileNotFoundException
 
FileUtils - Class in com.github.barteksc.pdfviewer.util
 
floor(float) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
Returns the largest integer less than or equal to the specified float.
fromAsset(String) - Method in class com.github.barteksc.pdfviewer.PDFView
Use an asset file as the pdf source
fromFile(File) - Method in class com.github.barteksc.pdfviewer.PDFView
Use a file as the pdf source
fromUri(Uri) - Method in class com.github.barteksc.pdfviewer.PDFView
Use Uri as the pdf source, for use with content provider

G

getCacheOrder() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getCurrentPage() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getCurrentXOffset() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getCurrentYOffset() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getDocumentMeta() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getDP(Context, int) - Static method in class com.github.barteksc.pdfviewer.util.Util
 
getHeight() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getMaxZoom() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getMidZoom() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getMinZoom() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getOptimalPageHeight() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getOptimalPageWidth() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getPage() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getPageAtPositionOffset(float) - Method in class com.github.barteksc.pdfviewer.PDFView
Get page number at given offset
getPageCount() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getPageRelativeBounds() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getPositionOffset() - Method in class com.github.barteksc.pdfviewer.PDFView
Get current position as ratio of document length to visible area.
getRenderedBitmap() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getTableOfContents() - Method in class com.github.barteksc.pdfviewer.PDFView
 
getUserPage() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getWidth() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
getZoom() - Method in class com.github.barteksc.pdfviewer.PDFView
 
GRID_SIZE - Static variable in interface com.github.barteksc.pdfviewer.util.Constants
The size of the grid of loaded images around the current point

H

hide() - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
hide() - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Hide handle immediately
hideDelayed() - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
hideDelayed() - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Hide handle after some time (defined by implementation)

I

isAnnotationRendering() - Method in class com.github.barteksc.pdfviewer.PDFView
 
isBestQuality() - Method in class com.github.barteksc.pdfviewer.PDFView
 
isRecycled() - Method in class com.github.barteksc.pdfviewer.PDFView
 
isSwipeVertical() - Method in class com.github.barteksc.pdfviewer.PDFView
 
isThumbnail() - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
isZooming() - Method in class com.github.barteksc.pdfviewer.PDFView
 

J

jumpTo(int, boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
Go to the given page.
jumpTo(int) - Method in class com.github.barteksc.pdfviewer.PDFView
 

L

limit(int, int, int) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
Limits the given number between the other values
limit(float, float, float) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
Limits the given number between the other values
load() - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
loadComplete(int) - Method in interface com.github.barteksc.pdfviewer.listener.OnLoadCompleteListener
Called when the PDF is loaded
loadComplete(PdfDocument) - Method in class com.github.barteksc.pdfviewer.PDFView
Called when the PDF is loaded
loadError(Throwable) - Method in class com.github.barteksc.pdfviewer.PDFView
 
loadPages() - Method in class com.github.barteksc.pdfviewer.PDFView
Load all the parts around the center of the screen, taking into account X and Y offsets, zoom level, and the current page displayed

M

MathUtils - Class in com.github.barteksc.pdfviewer.util
 
max(float, float) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
 
MAXIMUM_ZOOM - Static variable in interface com.github.barteksc.pdfviewer.util.Constants.Pinch
 
min(float, float) - Static method in class com.github.barteksc.pdfviewer.util.MathUtils
 
MINIMUM_ZOOM - Static variable in interface com.github.barteksc.pdfviewer.util.Constants.Pinch
 
moveRelativeTo(float, float) - Method in class com.github.barteksc.pdfviewer.PDFView
Move relatively to the current position.
moveTo(float, float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
moveTo(float, float, boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
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.

O

onBitmapRendered(PagePart) - Method in class com.github.barteksc.pdfviewer.PDFView
Called when a rendering task is over and a PagePart has been freshly created.
onDetachedFromWindow() - Method in class com.github.barteksc.pdfviewer.PDFView
 
onDraw(OnDrawListener) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
onDraw(Canvas) - Method in class com.github.barteksc.pdfviewer.PDFView
 
OnDrawListener - Interface in com.github.barteksc.pdfviewer.listener
This interface allows an extern class to draw something on the PDFView canvas, above all images.
onError(Throwable) - Method in interface com.github.barteksc.pdfviewer.listener.OnErrorListener
Called if error occurred while opening PDF
onError(OnErrorListener) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
OnErrorListener - Interface in com.github.barteksc.pdfviewer.listener
 
onLayerDrawn(Canvas, float, float, int) - Method in interface com.github.barteksc.pdfviewer.listener.OnDrawListener
This method is called when the PDFView is drawing its view.
onLoad(OnLoadCompleteListener) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
OnLoadCompleteListener - Interface in com.github.barteksc.pdfviewer.listener
Implement this interface to receive events from PDFView when loading is complete.
onPageChange(OnPageChangeListener) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
onPageChanged(int, int) - Method in interface com.github.barteksc.pdfviewer.listener.OnPageChangeListener
Called when the user use swipe to change page
OnPageChangeListener - Interface in com.github.barteksc.pdfviewer.listener
Implements this interface to receive events from PDFView when a page has changed through swipe
onPageScroll(OnPageScrollListener) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
onPageScrolled(int, float) - Method in interface com.github.barteksc.pdfviewer.listener.OnPageScrollListener
Called on every move while scrolling
OnPageScrollListener - Interface in com.github.barteksc.pdfviewer.listener
Implements this interface to receive events from PDFView when a page has been scrolled
onSizeChanged(int, int, int, int) - Method in class com.github.barteksc.pdfviewer.PDFView
 
onTouchEvent(MotionEvent) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 

P

PagePart - Class in com.github.barteksc.pdfviewer.model
 
PagePart(int, int, Bitmap, float, float, RectF, boolean, int) - Constructor for class com.github.barteksc.pdfviewer.model.PagePart
 
pages(int...) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
PART_SIZE - Static variable in interface com.github.barteksc.pdfviewer.util.Constants
The size of the rendered parts (default 256) Tinier : a little bit slower to have the whole page rendered but more reactive.
password(String) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
PDFView - Class in com.github.barteksc.pdfviewer
It supports animations, zoom, cache, and swipe.
PDFView(Context, AttributeSet) - Constructor for class com.github.barteksc.pdfviewer.PDFView
Construct the initial view
PDFView.Configurator - Class in com.github.barteksc.pdfviewer
 
PRELOAD_COUNT - Static variable in interface com.github.barteksc.pdfviewer.util.Constants
Number of preloaded rows or columns

R

recycle() - Method in class com.github.barteksc.pdfviewer.PDFView
 
resetZoom() - Method in class com.github.barteksc.pdfviewer.PDFView
 
resetZoomWithAnimation() - Method in class com.github.barteksc.pdfviewer.PDFView
 

S

scrollHandle(ScrollHandle) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 
ScrollHandle - Interface in com.github.barteksc.pdfviewer.scroll
 
setCacheOrder(int) - Method in class com.github.barteksc.pdfviewer.model.PagePart
 
setMaxZoom(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setMidZoom(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setMinZoom(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setPageNum(int) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
setPageNum(int) - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Set page number displayed on handle
setPositionOffset(float, boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setPositionOffset(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setScroll(float) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
setScroll(float) - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Used to move the handle, called internally by PDFView
setSwipeVertical(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
setTextColor(int) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
setTextSize(int) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
setupLayout(PDFView) - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
setupLayout(PDFView) - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Method called by PDFView after setting scroll handle.
show() - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
show() - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Show handle
shown() - Method in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
shown() - Method in interface com.github.barteksc.pdfviewer.scroll.ScrollHandle
Get handle visibility
stopFling() - Method in class com.github.barteksc.pdfviewer.PDFView
 
swipeHorizontal(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView.Configurator
 

T

textView - Variable in class com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
 
THUMBNAIL_RATIO - Static variable in interface com.github.barteksc.pdfviewer.util.Constants
Between 0 and 1, the thumbnails quality (default 0.3)
THUMBNAILS_CACHE_SIZE - Static variable in interface com.github.barteksc.pdfviewer.util.Constants.Cache
 
toCurrentScale(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
toRealScale(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 

U

useBestQuality(boolean) - Method in class com.github.barteksc.pdfviewer.PDFView
 
Util - Class in com.github.barteksc.pdfviewer.util
 
Util() - Constructor for class com.github.barteksc.pdfviewer.util.Util
 

Z

zoomCenteredRelativeTo(float, PointF) - Method in class com.github.barteksc.pdfviewer.PDFView
 
zoomCenteredTo(float, PointF) - Method in class com.github.barteksc.pdfviewer.PDFView
Change the zoom level, relatively to a pivot point.
zoomTo(float) - Method in class com.github.barteksc.pdfviewer.PDFView
Change the zoom level
zoomWithAnimation(float, float, float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
zoomWithAnimation(float) - Method in class com.github.barteksc.pdfviewer.PDFView
 
A C D E F G H I J L M O P R S T U Z 
Skip navigation links