- Merge PR #714 with optimized page load
- Merge PR #776 with fix for max & min zoom level
- Merge PR #722 with fix for showing right position when view size changed
- Merge PR #703 with fix for too many threads
- Merge PR #702 with fix for memory leak
- Merge PR #689 with possibility to disable long click
- Merge PR #628 with fix for hiding scroll handle
- Merge PR #627 with
fitEachPage
option - Merge PR #638 and #406 with fixed NPE
- Merge PR #780 with README fix
- Update compile SDK and support library to 28
- Update Gradle and Gradle Plugin
- Merge pull request #557 for snapping pages (scrolling page by page)
- merge pull request #618 for night mode
- Merge pull request #566 for
OnLongTapListener
- Update PdfiumAndroid to 1.9.0, which uses
c++_shared
instead ofgnustl_static
- Update Gradle Plugin
- Update compile SDK and support library to 26
- Change minimum SDK to 14
- Fix issue with
Configurator#pages()
from #486 - Fix
IllegalStateException
from #464 - Fix not detecting links reported in #447
- Fix not loaded pages when using animated
PDFView#jumpTo()
- Fix NPE in
canScrollVertically()
andcanScrollHorizontally()
- Fix bug preventing
OnErrorListener
from being called
- Fix rendering with maximum zoom
- Improve fit policies
- Update PdfiumAndroid to 1.8.1
- Add support for documents with different page sizes
- Add support for links
- Add support for defining page fit policy (fit width, height or both)
- Update sample.pdf to contain different page sizes
- Fix bug with rendering
PDFView
in Android Studio Layout Editor
- Add handling of invalid pages, inspired by pull request #433. Exception on page opening crashed application until now,
currently
OnPageErrorListener
set with.onPageError()
is called. Invalid page color can be set using.invalidPageColor()
- Implement
canScrollVertically()
andcanScrollHorizontally()
methods to work e.g. withSwipeRefreshLayout
- Fix bug when
Configurator#load()
method was called before view has been measured, which resulted in empty canvas
- Merge pull request by owurman with added OnTapListener
- Merge bugfix by lzwandnju to prevent
ArithmeticException: divide by zero
- Updates PdfiumAndroid to 1.7.0 which reduces memory usage about twice and improves performance by using RGB 565 format (when not using
pdfView.useBestQuality(true)
)
- Update PdfiumAndroid to 1.6.1, which fixed font rendering (issue #253)
- Add
.spacing(int)
method to add spacing (in dp) between document pages - Fix drawing with
.onDraw(onDrawListener)
- Add
.onDrawAll(onDrawListener)
method to draw on all pages - Add small rendering improvements
- Fix rendering when duplicated pages are passed to
.pages(..)
- Fix disappearing scroll handle
- Fix fling on single-page documents
- Greatly improve overall fling experience
- Temporarily downgrade PdfiumAndroid until #253 will be fixed
- Update PdfiumAndroid to 1.6.0, which is based on newest Pdfium from Android 7.1.1. It should fix many rendering and fonts problems
- Add method
pdfView.fitToWidth()
, which called inOnRenderListener.onInitiallyRendered()
will fit document to width of the screen (inspired by 1stmetro) - Add change from pull request by isanwenyu to get rid of rare IllegalArgumentException while rendering
- Add
OnRenderListener
, that will be called once, right before document is drawn on the screen - Add
Configurator.enableAntialiasing()
to improve rendering on low-res screen a little bit (as suggested by majkimester) - Modify engine to not block UI when big documents are loaded
- Change
Constants
interface and inner interfaces to static public classes, to allow modifying core config values
- Merge pull request by hansinator85 which allows to enable/disable rendering during scale
- Make rendering during scale disabled by default (looks better)
- Merge pull request by cesquivias which replaces RenderingAsyncTask with Handler to simply code and work with testing frameworks
- Add mechanism for providing documents from different sources - more info in README
- Update PdfiumAndroid to 1.5.0
- Thanks to document sources and PdfiumAndroid update, in-memory documents are supported
- Fix not working OnClickListener on PDFView
- com.github.barteksc.exception.FileNotFoundException is deprecated and all usages was removed. All exceptions are delivered to old Configurator#onError() listener.
- Merge pull request by skarempudi which fixes SDK 23 permission problems in sample app
- Merge pull request by skarempudi for showing info on phones without file manager
- Add feature from 1.x - canvas is set to drawable from View#getBackground()
- fixed loading document from subfolder in assets directory
- fixed scroll handle NPE after document loading error (improvement of 2.0.3 fix)
- fixed incorrect scroll handle position with additional views in RelativeLayout
- improved cache usage and fixed bug with rendering when zooming
- if you are using custom scroll handle: scroll handle implementation changed a little bit, check DefaultScrollHandle source for details
- Fix scroll handle NPE after document loading error
- Fix exceptions caused by improperly finishing rendering task
- Fix NPE when onDetachFromWindow is called
- few API changes
- improved rendering speed and accuracy
- added continuous scroll - now it behaves like Adobe Reader and others
- added
fling
scroll gesture for velocity based scrolling - added scroll handle as a replacement for scrollbar
Configurator#defaultPage(int)
andPDFView#jumpTo(int)
now require page index (i.e. starting from 0)OnPageChangeListener#onPageChanged(int, int)
is called with page index (i.e. starting from 0)- removed scrollbar
- added scroll handle as a replacement for scrollbar, use with
Configurator#scrollHandle()
- added
OnPageScrollListener
listener due to continuous scroll, register withConfigurator#onPageScroll()
- default scroll direction is vertical, so
Configurator#swipeVertical()
was changed toConfigurator#swipeHorizontal()
- removed minimap and mask configuration
- Fix NPE and IndexOutOfBound bugs when rendering parts
- Merge pull request by paulo-sato-daitan for disabling page change animation
- Merge pull request by Miha-x64 for drawing background if set on
PDFView
- update PdfiumAndroid to 1.4.0 with support for rendering annotations
- merge pull request by usef for rendering annotations
- update PdfiumAndroid to 1.3.1 with support for bookmarks, Table Of Contents and documents with password:
- added method
PDFView#getDocumentMeta()
, which returns document metadata - added method
PDFView#getTableOfContents()
, which returns whole tree of bookmarks in PDF document - added method
Configurator#password(String)
- added method
- added horizontal mode to ScrollBar - use
ScrollBar#setHorizontal(true)
orapp:sb_horizontal="true"
in XML - block interaction with
PDFView
when document is not loaded - prevent some exceptions - fix
PDFView
exceptions in layout preview (edit mode)
- update PdfiumAndroid to 1.1.0, which fixes displaying multiple
PDFView
s at the same time and few errors with loading PDF documents.
- fixes bug with strange behavior when indices passed to
.pages()
don't start with0
.
- added method
pdfView.fromUri(Uri)
for opening files from content providers - updated PdfiumAndroid to 1.0.3, which should fix bug with exception
- updated sample with demonstration of
fromUri()
method - some minor fixes
- Initial release