View local pdf files.
2 binding projects, One for the viewer and the other one is the PdfiumAndroid library
Documentation for Android Viewer
Documentation for PdfiumAndroid
Documentation for iOS
Documentation for Android
Documentation for iOS
Documentation for Android
Check both SDKs GitHub page for more information on how to make the samples work (iOS Android)
-
Download the code from GitHub
-
Build in Release for Device and Simulator
-
Create a fat binary using lipo with the 2 resulting .frameworks Source
-
Combine these 2 Frameworks using lipo by this script (replace YourFrameworkName to your Framework name)
sh lipo -create -output "YourFrameworkName" "Release-iphonesimulator/YourFrameworkName.framework/YourFrameworkName" "Release-iphoneos/YourFrameworkName.framework/YourFrameworkName"
-
Replace with new binary one of the existing frameworks
sh cp -R Release-iphoneos/YourFrameworkName.framework ./YourFrameworkName.framework mv YourFrameworkName ./YourFrameworkName.framework/YourFrameworkName
A view controller that allows users to crop UIImage objects.
TOCropViewController GitHub
###Sample
var image = UIImage.FromFile(fileString);
var viewController = new TOCrop.TOCropViewController(image);
var rootViewController = UIApplication.SharedApplication.Delegate.GetWindow().RootViewController;
try
{
var imageBytes = viewController.ShowCropViewAsync(rootViewController, true, null);
}
catch(TaskCancelException)
{
// User cancelled the operation
}
The MIT License (MIT)
Copyright (c) 2016 Apcurium Group Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.