Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40000ac

Browse files
committed
Update README and CHANGELOG
Update version
1 parent 8c46535 commit 40000ac

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 2.3.0 (2016-11-19)
2+
* Add mechanism for providing documents from different sources - more info in README
3+
* Update PdfiumAndroid to 1.5.0
4+
* Thanks to document sources and PdfiumAndroid update, in-memory documents are supported
5+
* Fix not working OnClickListener on PDFView
6+
* **com.github.barteksc.exception.FileNotFoundException** is deprecated and all usages was removed.
7+
All exceptions are delivered to old Configurator#onError() listener.
8+
19
## 2.2.0 (2016-11-15)
210
* Merge pull request by [skarempudi](https://github.com/skarempudi) which fixes SDK 23 permission problems in sample app
311
* Merge pull request by skarempudi for showing info on phones without file manager

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
# Android PdfViewer
44

55
__AndroidPdfViewer 1.x is available on [AndroidPdfViewerV1](https://github.com/barteksc/AndroidPdfViewerV1)
6-
repo, where can be developed independently.__
6+
repo, where can be developed independently. Version 1.x uses different engine for drawing document on canvas,
7+
so if you don't like 2.x version, try 1.x.__
78

89
Library for displaying PDF documents on Android, with `animations`, `gestures`, `zoom` and `double tap` support.
910
It is based on [PdfiumAndroid](https://github.com/barteksc/PdfiumAndroid) for decoding PDF files. Works on API 11 and higher.
1011
Licensed under Apache License 2.0.
1112

12-
## What's new in 2.2.0?
13-
* Merge pull request by [skarempudi](https://github.com/skarempudi) which fixes SDK 23 permission problems in sample app
14-
* Merge pull request by skarempudi for showing info on phones without file manager
15-
* Add feature from 1.x - canvas is set to drawable from View#getBackground()
13+
## What's new in 2.3.0?
14+
* Add mechanism for providing documents from different sources - more info [here](#document-sources)
15+
* Update PdfiumAndroid to 1.5.0
16+
* Thanks to document sources and PdfiumAndroid update, in-memory documents are supported
17+
* Fix not working OnClickListener on PDFView
18+
* **com.github.barteksc.exception.FileNotFoundException** is deprecated and all usages was removed.
19+
All exceptions are delivered to old Configurator#onError() listener.
1620

1721
## Changes in 2.0 API
1822
* `Configurator#defaultPage(int)` and `PDFView#jumpTo(int)` now require page index (i.e. starting from 0)
@@ -27,7 +31,7 @@ Licensed under Apache License 2.0.
2731

2832
Add to _build.gradle_:
2933

30-
`compile 'com.github.barteksc:android-pdf-viewer:2.2.0'`
34+
`compile 'com.github.barteksc:android-pdf-viewer:2.3.0'`
3135

3236
Library is available in jcenter repository, probably it'll be in Maven Central soon.
3337

@@ -86,6 +90,21 @@ By using constructor with second argument (`new DefaultScrollHandle(this, true)`
8690
You can also create custom scroll handles, just implement **ScrollHandle** interface.
8791
All methods are documented as Javadoc comments on interface [source](https://github.com/barteksc/AndroidPdfViewer/tree/master/android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/scroll/ScrollHandle.java).
8892

93+
## Document sources
94+
Version 1.5.0 introduced _document sources_, which are just providers for PDF documents.
95+
Every provider implements **DocumentSource** interface.
96+
Predefined providers are available in **com.github.barteksc.pdfviewer.source** package and can be used as
97+
samples for creating custom ones.
98+
99+
Predefined providers can be used with shorthand methods:
100+
```
101+
pdfView.fromUri(Uri)
102+
pdfView.fromFile(File)
103+
pdfView.fromBytes(byte[])
104+
pdfView.fromStream(InputStream)
105+
pdfView.fromAsset(String)
106+
```
107+
Custom providers may be used with `pdfView.fromSource(DocumentSource)` method.
89108

90109
## Additional options
91110

android-pdf-viewer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
siteUrl = 'https://github.com/barteksc/AndroidPdfViewer'
1414
gitUrl = 'https://github.com/barteksc/AndroidPdfViewer.git'
1515

16-
libraryVersion = '2.2.0'
16+
libraryVersion = '2.3.0'
1717

1818
developerId = 'barteksc'
1919
developerName = 'Bartosz Schiller'
@@ -32,7 +32,7 @@ android {
3232
minSdkVersion 11
3333
targetSdkVersion 23
3434
versionCode 1
35-
versionName "2.2.0"
35+
versionName "2.3.0"
3636
}
3737

3838
}

0 commit comments

Comments
 (0)