Android PDFView parent

An easy-to-use Android PDFView component with swipe and zoom

License

License

Categories

Categories

PDF Data
GroupId

GroupId

com.joanzapata.pdfview
ArtifactId

ArtifactId

android-pdfview-parent
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

pom
Description

Description

Android PDFView parent
An easy-to-use Android PDFView component with swipe and zoom
Project URL

Project URL

http://joanzapata.com/android-pdfview/
Source Code Management

Source Code Management

http://github.com/JoanZapata/android-pdfview/

Download android-pdfview-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.joanzapata.pdfview/android-pdfview-parent/ -->
<dependency>
    <groupId>com.joanzapata.pdfview</groupId>
    <artifactId>android-pdfview-parent</artifactId>
    <version>1.0.4</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.joanzapata.pdfview/android-pdfview-parent/
implementation 'com.joanzapata.pdfview:android-pdfview-parent:1.0.4'
// https://jarcasting.com/artifacts/com.joanzapata.pdfview/android-pdfview-parent/
implementation ("com.joanzapata.pdfview:android-pdfview-parent:1.0.4")
'com.joanzapata.pdfview:android-pdfview-parent:pom:1.0.4'
<dependency org="com.joanzapata.pdfview" name="android-pdfview-parent" rev="1.0.4">
  <artifact name="android-pdfview-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.joanzapata.pdfview', module='android-pdfview-parent', version='1.0.4')
)
libraryDependencies += "com.joanzapata.pdfview" % "android-pdfview-parent" % "1.0.4"
[com.joanzapata.pdfview/android-pdfview-parent "1.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • android-pdfview
  • android-pdfview-sample

This project is no longer maintained.

You can find a good replacement here, which is a fork relying on Pdfium instead of Vudroid/MuPDF for decoding PDF files, allowing it to use the Apache License 2.0 which gives you much more freedom.


Android Arsenal

Screenshot of the sample app

Android PDFView is a library which provides a fast PDFView component for Android, with animations, gestures, and zoom. It's based on VuDroid for decoding the PDF file.

Get it

Android PDFView is available in Maven Central.

<dependency>
	<groupId>com.joanzapata.pdfview</groupId>
	<artifactId>android-pdfview</artifactId>
	<version>1.0.4</version>
	<type>apklib</type>
</dependency>

Or via gradle:

compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'

Include PDFView in your layout

<com.joanzapata.pdfview.PDFView
        android:id="@+id/pdfview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

Load a PDF file

pdfView.fromAsset(pdfName)
    .pages(0, 2, 1, 3, 3, 3)
    .defaultPage(1)
    .showMinimap(false)
    .enableSwipe(true)
    .onDraw(onDrawListener)
    .onLoad(onLoadCompleteListener)
    .onPageChange(onPageChangeListener)
    .load();
  • pages is optional, it allows you to filter and order the pages of the PDF as you need
  • onDraw is also optional, and allows you to draw something on a provided canvas, above the current page

License

Copyright 2013-2015 Joan Zapata

This file is part of Android-pdfview.

Android-pdfview is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Android-pdfview is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Android-pdfview.  If not, see <http://www.gnu.org/licenses/>.

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0