All Projects → afreakyelf → Pdf Viewer

afreakyelf / Pdf Viewer

Licence: mit
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Pdf Viewer

Changedetection
Automatically track websites changes on Android in background.
Stars: ✭ 563 (+221.71%)
Mutual labels:  pdf, android-application
Itext7
iText 7 for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 913 (+421.71%)
Mutual labels:  library, pdf
Ptshowcaseviewcontroller
An initial implementation of a "showcase" view( controller) for iOS apps... Visualizes images, videos and PDF files beautifully! (by @pittleorg) [meta: image, photo, video, document, pdf, album, gallery, showcase, gallery, iOS, iPhone, iPad, component, library, viewer]
Stars: ✭ 395 (+125.71%)
Mutual labels:  library, pdf
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+1857.71%)
Mutual labels:  library, pdf
Pdfviewpager
Android widget that can render PDF documents stored on SD card, linked as assets, or downloaded from a remote URL.
Stars: ✭ 1,508 (+761.71%)
Mutual labels:  library, pdf
Kodein Mvvm
Example app using Kodein for dependency injection with MVVM and Architecture Components
Stars: ✭ 26 (-85.14%)
Mutual labels:  dependency, android-application
Itext7 Dotnet
iText 7 for .NET is the .NET version of the iText 7 library, formerly known as iTextSharp, which it replaces. iText 7 represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 698 (+298.86%)
Mutual labels:  library, pdf
Geojsonify
Easily add GeoJson layers to your Maps
Stars: ✭ 141 (-19.43%)
Mutual labels:  library, android-application
Otpview
A custom view to enter otp/pin of different sizes used usually in cases of authentication.
Stars: ✭ 172 (-1.71%)
Mutual labels:  library, android-application
Permissionsflow
A simple library to make it easy requesting permissions in Android using Kotlin Coroutines.
Stars: ✭ 49 (-72%)
Mutual labels:  library, android-application
Pdfview Android
Small Android library to show PDF files
Stars: ✭ 132 (-24.57%)
Mutual labels:  library, pdf
Android Ui 2019
Android Library 2019 Loading.....
Stars: ✭ 159 (-9.14%)
Mutual labels:  library, android-application
Tcpdf Laravel
TCPDF helper for laravel
Stars: ✭ 172 (-1.71%)
Mutual labels:  pdf
Move To Library Sketchplugin
You can now move symbol from your project to any library and re-attach all the symbol instances to this library. also it keep the overrides without any problems and it work with abstract that have libraries not in your local machine
Stars: ✭ 174 (-0.57%)
Mutual labels:  library
Adaptive Tab Bar
AdaptiveController is a 'Progressive Reduction' Swift UI module for adding custom states to Native or Custom iOS UI elements. Swift UI component by @Ramotion
Stars: ✭ 2,032 (+1061.14%)
Mutual labels:  library
Yalpstore
Download apks from Google Play Store
Stars: ✭ 2,088 (+1093.14%)
Mutual labels:  android-application
Movingnumbersview
Moving numbers effect in SwiftUI
Stars: ✭ 175 (+0%)
Mutual labels:  library
Mkdocs Pdf Export Plugin
An MkDocs plugin to export content pages as PDF files
Stars: ✭ 173 (-1.14%)
Mutual labels:  pdf
Resumake.io
📝 A website for automatically generating elegant LaTeX resumes.
Stars: ✭ 2,277 (+1201.14%)
Mutual labels:  pdf
Json Api
Implementation of JSON API in PHP 7
Stars: ✭ 171 (-2.29%)
Mutual labels:  library

Pdf Viewer For Android

A Simple PDF Viewer library which only occupies around 125kb while most of the Pdf viewer occupies upto 16MB space.

License

How to integrate into your app?

Integrating the project is simple, All you need to do is follow the below steps

Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url "https://jitpack.io" }
  }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.afreakyelf:Pdf-Viewer:Tag'
}

How to use the library?

Now you have integrated the library in your project but how do you use it? Well its really easy just launch the intent with in following way:

open_pdf.setOnClickListener {
            startActivity(
            
            // Use 'launchPdfFromPath' if you want to use assets file (enable "fromAssets" flag) / internal directory
           
                PdfViewerActivity.launchPdfFromUrl(           
                    context,                                                                      
                    "pdf_url",                                // PDF URL in String format
                    "Pdf title/name ",                        // PDF Name/Title in String format
                    "pdf directory to save",                  // If nothing specific, Put "" it will save to Downloads
                    enableDownload = false                    // This param is true by defualt.
                )
            )
        } 

That's pretty much it and you're all wrapped up.

Ui Customizations

You need to add the custom theme to styles.xml/themes.xml file and override the required attribute values. Parent theme can be either Theme.PdfView.Light or Theme.PdfView.Dark or the one with no actionbar from the application. Note: If parent is not one of the themes from this library, all of the pdfView attributes should be added to that theme.

<style name="Theme.PdfView.SelectedTheme" parent="@style/Theme.PdfView.Light">
    <item name="pdfView_backIcon">@drawable/ic_arrow_back</item>
    ...
</style>

Supported attributes

Attribute Name Type Expected changes
pdfView_backIcon drawable Navigation icon
pdfView_downloadIcon drawable Download icon
pdfView_downloadIconTint color Download icon tint
pdfView_actionBarTint color Actionbar background color
pdfView_titleTextStyle style Actionbar title text appearance
pdfView_progressBar style Progress bar style

Contributing

Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Add some NewFeature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

Donations

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Author

Maintained by Rajat Mittal

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].