{"id":19839420,"url":"https://github.com/scientifichackers/flutter_pdf_viewer","last_synced_at":"2026-01-11T04:49:20.723Z","repository":{"id":56829923,"uuid":"141070855","full_name":"scientifichackers/flutter_pdf_viewer","owner":"scientifichackers","description":"A native PDF viewer for flutter.","archived":false,"fork":false,"pushed_at":"2020-04-23T19:00:47.000Z","size":10846,"stargazers_count":109,"open_issues_count":19,"forks_count":40,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T17:04:41.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scientifichackers.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-16T01:14:17.000Z","updated_at":"2025-03-26T09:59:40.000Z","dependencies_parsed_at":"2022-09-02T03:51:28.385Z","dependency_job_id":null,"html_url":"https://github.com/scientifichackers/flutter_pdf_viewer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fflutter_pdf_viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fflutter_pdf_viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fflutter_pdf_viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientifichackers%2Fflutter_pdf_viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientifichackers","download_url":"https://codeload.github.com/scientifichackers/flutter_pdf_viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932513,"owners_count":21667157,"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-11-12T12:22:22.673Z","updated_at":"2025-05-01T19:30:19.987Z","avatar_url":"https://github.com/scientifichackers.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Sponsor](https://img.shields.io/badge/Sponsor-jaaga_labs-red.svg?style=for-the-badge)](https://www.jaaga.in/labs) [![pub package](https://img.shields.io/pub/v/flutter_pdf_viewer.svg?style=for-the-badge)](https://pub.dartlang.org/packages/flutter_pdf_viewer)\n\n# flutter pdf viewer\n\nA native Pdf viewer for flutter, built on [AndroidPdfViewer](https://github.com/barteksc/AndroidPdfViewer).\n\n*P.S. Android Only!*\n\n## Features\n\n-   Night Mode\n-   Scroll Bar\n-   Horizontal swipe\n-   Pinch to zoom\n-   Show inline Videos in Pdf\n-   Immersive mode\n-   Page by page analytics\n\n## Security\n\n-   Features _fast_ native speed XOR - decryption of files.\n-   Password protected pdf.\n-   Display PDF from bytes without ever touching the disk!\n\n## Drawbacks\n\n-   \u003cs\u003eInline Pdf Viewing is not supported. ( A new activity is opened ). See [#1](https://github.com/pycampers/flutter_pdf_viewer/issues/1).\u003c/s\u003e\n\n    A proof of concept for inline PDFs is available at the [inline](https://github.com/pycampers/flutter_pdf_viewer/tree/inline) branch.\n\n## Install\n\nTo use this plugin, follow the [installation instructions](https://pub.dartlang.org/packages/flutter_pdf_viewer#-installing-tab-).\n\nLicense: MIT\n\n#### NOTE: You must add these lines at `android/app/build.gradle`.\n(This is required by [ExoPlayer](https://github.com/google/ExoPlayer), which is used to play videos).\n```\nandroid {\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n}\n```\n\n## Example\n\n```sh\n$ git clone https://github.com/pycampers/flutter_pdf_viewer.git\n$ cd flutter_pdf_viewer/example\n$ flutter run\n```\n\n## Preview\n\n\u003cimg src=\"https://i.imgur.com/Uhmk09s.png\" height=\"400\" /\u003e\n\n## Generating 64-bit APKs\n\nThe Underlying native library tends to blow up the APK size. So, you can build a separate APK for each CPU architecture.\n\nThis will also fix an issue with flutter tooling, where 64-bit ARM devices don't work.\n\nAdd the following section in `android/app/build.gradle` - \n```\nandroid {\n    defaultConfig {\n        ndk {\n            abiFilters \"\u003carch\u003e\"\n        }\n    }\n}\n```\n\n- For 32-bit APK, replace `\u003carch\u003e` with `armeabi-v7a`, and run `$ flutter build apk --release` as usual.\n\n- For 64-bit APK, replace `\u003carch\u003e` with `arm64-v8a`, and run `$ flutter build apk --release --target-platform=android-arm64`.\n\nNow you have 2 Apks, which you will need to publish separately to the Play Store. For that you need to tweak the `android:versionCode` property to have slightly different values for each build.\n\nThe exact \"Rules for multiple APKs\" can be found [here](https://developer.android.com/google/play/publishing/multiple-apks).\n\n## Thanks\n\n-   [AndroidPdfViewer](https://github.com/barteksc/AndroidPdfViewer) for proving this wonderful, and simple to use library.\n-   [#10348](https://github.com/flutter/flutter/issues/10348).\n\n---\n\n[🐍🏕️](http://www.pycampers.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fflutter_pdf_viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientifichackers%2Fflutter_pdf_viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientifichackers%2Fflutter_pdf_viewer/lists"}