<commit_before>

# Android PdfViewer

__This is repo with version 1.x of [AndroidPdfViewer](https://github.com/barteksc/AndroidPdfViewer).
Version 1.x uses different engine for drawing document on canvas, so if you don't like 2.x version, try this.
This version is still updated and supported.__

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

## What's new in 1.5.0?
* Add mechanism for providing documents from different sources - more info [here](#document-sources)
* Update PdfiumAndroid to 1.5.0
* Thanks to document sources and PdfiumAndroid update, in-memory documents are supported
* Replace DragPinchListener with Android's GestureDetector to add support for fling gesture while zooming

## Installation

Add to _build.gradle_:

`compile 'com.github.barteksc:android-pdf-viewer:1.5.0'`

Library is available in jcenter repository, probably it'll be in Maven Central soon.<commit_msg>Add info about deprecated FileNotFoundException<commit_after>

# Android PdfViewer

__This is repo with version 1.x of [AndroidPdfViewer](https://github.com/barteksc/AndroidPdfViewer).
Version 1.x uses different engine for drawing document on canvas, so if you don't like 2.x version, try this.
This version is still updated and supported.__

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

## What's new in 1.5.0?
* Add mechanism for providing documents from different sources - more info [here](#document-sources)
* Update PdfiumAndroid to 1.5.0
* Thanks to document sources and PdfiumAndroid update, in-memory documents are supported
* Replace DragPinchListener with Android's GestureDetector to add support for fling gesture while zooming
* **com.github.barteksc.exception.FileNotFoundException** is deprecated and all usages was removed.
All exceptions are delivered to old Configurator#onError() listener

## Installation

Add to _build.gradle_:

`compile 'com.github.barteksc:android-pdf-viewer:1.5.0'`

Library is available in jcenter repository, probably it'll be in Maven Central soon.
{'fraction_non_alphanumeric': 0.07903357903357904, 'fraction_numerical': 0.013104013104013105, 'mean_word_length': 5.153652392947103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7261122', 'n_tokens_mistral': 717, 'n_tokens_neox': 676, 'n_words': 287}