You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,12 @@ pdfView.fromUri(Uri)
52
52
or
53
53
pdfView.fromFile(File)
54
54
or
55
+
pdfView.fromBytes(byte[])
56
+
or
57
+
pdfView.fromStream(InputStream)
58
+
or
59
+
pdfView.fromSource(DocumentSource)
60
+
or
55
61
pdfView.fromAsset(String)
56
62
.pages(0, 2, 1, 3, 3, 3) // all pages are displayed by default
57
63
.enableSwipe(true)
@@ -91,7 +97,7 @@ You can also create custom scroll handles, just implement **ScrollHandle** inter
91
97
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).
92
98
93
99
## Document sources
94
-
Version 1.5.0 introduced _document sources_, which are just providers for PDF documents.
100
+
Version 2.3.0 introduced _document sources_, which are just providers for PDF documents.
95
101
Every provider implements **DocumentSource** interface.
96
102
Predefined providers are available in **com.github.barteksc.pdfviewer.source** package and can be used as
0 commit comments