{"id":13396415,"url":"https://github.com/JoanZapata/android-pdfview","last_synced_at":"2025-03-13T23:31:11.694Z","repository":{"id":5592274,"uuid":"6798814","full_name":"JoanZapata/android-pdfview","owner":"JoanZapata","description":"[DEPRECATED] A fast PDF reader component for Android development","archived":false,"fork":false,"pushed_at":"2016-07-04T19:53:19.000Z","size":14319,"stargazers_count":2836,"open_issues_count":141,"forks_count":785,"subscribers_count":159,"default_branch":"master","last_synced_at":"2024-10-29T17:50:47.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://joanzapata.com/android-pdfview/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoanZapata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-21T16:19:38.000Z","updated_at":"2024-10-25T07:01:35.000Z","dependencies_parsed_at":"2022-07-07T06:08:56.795Z","dependency_job_id":null,"html_url":"https://github.com/JoanZapata/android-pdfview","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-pdfview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-pdfview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-pdfview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-pdfview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoanZapata","download_url":"https://codeload.github.com/JoanZapata/android-pdfview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243499972,"owners_count":20300727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:50.575Z","updated_at":"2025-03-13T23:31:10.084Z","avatar_url":"https://github.com/JoanZapata.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Java","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# This project is no longer maintained.\n### You can find a good replacement [here](https://github.com/barteksc/AndroidPdfViewer), 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.\n\n----------------------\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--pdfview-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1332)\n\n[![Screenshot of the sample app](https://raw.github.com/JoanZapata/android-pdfview/master/device.png)](https://play.google.com/store/apps/details?id=com.joanzapata.pdfview.sample)\n\n**Android PDFView** is a library which provides a fast PDFView component for Android, with ```animations```, ```gestures```, and ```zoom```. It's based on [VuDroid](https://code.google.com/p/vudroid/) for decoding the PDF file.\n\n# Get it\n\nAndroid PDFView is **available in Maven Central**.\n\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.joanzapata.pdfview\u003c/groupId\u003e\n\t\u003cartifactId\u003eandroid-pdfview\u003c/artifactId\u003e\n\t\u003cversion\u003e1.0.4\u003c/version\u003e\n\t\u003ctype\u003eapklib\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nOr via gradle:\n\n```\ncompile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'\n```\n\n# Include PDFView in your layout\n\n```xml\n\u003ccom.joanzapata.pdfview.PDFView\n        android:id=\"@+id/pdfview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"/\u003e\n```\n\n# Load a PDF file\n\n```java\npdfView.fromAsset(pdfName)\n    .pages(0, 2, 1, 3, 3, 3)\n    .defaultPage(1)\n    .showMinimap(false)\n    .enableSwipe(true)\n    .onDraw(onDrawListener)\n    .onLoad(onLoadCompleteListener)\n    .onPageChange(onPageChangeListener)\n    .load();\n```\n\n* ```pages``` is optional, it allows you to filter and order the pages of the PDF as you need\n* ```onDraw``` is also optional, and allows you to draw something on a provided canvas, above the current page\n\n# License\n\n```\nCopyright 2013-2015 Joan Zapata\n\nThis file is part of Android-pdfview.\n\nAndroid-pdfview is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nAndroid-pdfview is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with Android-pdfview.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoanZapata%2Fandroid-pdfview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJoanZapata%2Fandroid-pdfview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoanZapata%2Fandroid-pdfview/lists"}