- Notifications
You must be signed in to change notification settings - Fork3
Xamarin Android binding library forhttps://github.com/Dmitry-Borodin/pdfview-android
License
SIDOVSKY/pdfview-android-xamarin-binding
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A binding library forhttps://github.com/Dmitry-Borodin/pdfview-android
AddNuGet package to your Xamarin.Android project
PM> Install-Package Xamarin.Bindings.PDFView-Android
- Add to your layout file
<com.pdfview.PDFViewandroid:id="@+id/pdf_view"android:layout_width="match_parent"android:layout_height="match_parent" />
- Load bundled file:
FindViewById<PDFView>(Resource.Id.pdf_view).FromAsset("asset_file.pdf").Show();
- To open pdf from the Internet, first download it to a temporary folder and then use
PDFView.FromPath(string).Show()
:
FindViewById<PDFView>(Resource.Id.pdf_view).FromPath("path-to-temp-folder/fileName.pdf").Show();
PDFView is inherited from a slightly modifiedSubsamplingScaleImageView - a beautiful library which provides different configuration options such as scaling, zooming, custom animations and more.
For details please visit Subsampling Scale Image Viewwiki page.
- Projects which already use Kotlin-Stdlib: ~120 Kb
- Projects without Kotlin-StdLib: ~550 Kb
This library doesn't referenceXamarin.Kotlin.StdLib because it doesn't need kotlin-stdlibbinding itself, it uses only java classes from it.Including C# binding classes shipped with Xamarin.Kotlin.StdLib would require ~1.5 Mb of apk size without a reason.
That's why this library also embeds kotlin-stdlib jar.
Resolution of a java class duplication conflict is provided by a special build target. If your project already uses kotlin-stdlib jar then our version will be excluded from compilation.
Build and deployPDFView-Android.Sample project to your android device/emulator.
- Vadim Sedov -Binding library & sample -SIDOVSKY
- Dmitry Borodin -"pdfview" java library -Dmitry-Borodin
- David Morrissey -Subsampling Scale Image View library -davemorrissey
See theNOTICE file for details.
This project is licensed under the Apache License, Version 2.0 - see theLICENSE file for details.
About
Xamarin Android binding library forhttps://github.com/Dmitry-Borodin/pdfview-android
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.