1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 23:45:39 +00:00

Test pdfjs ios

This commit is contained in:
Yan Maniez 2019-05-13 13:52:58 +02:00
parent 45c875d23f
commit b4c43e6b96
403 changed files with 108954 additions and 0 deletions

View file

@ -60,5 +60,13 @@ namespace AideDeJeu.iOS
Control.LoadRequest(new NSUrlRequest(new NSUrl(filePath, false)));
Control.ScalesPageToFit = true;
}
void LoadPdfJS(string fileName)
{
string filePath = NSBundle.MainBundle.ResourceUrl.Append("pdfjs/web/viewer.html", false).Path;
//string filePath = Path.Combine(Xamarin.Essentials.FileSystem.CacheDirectory, string.Format("pdf/{0}", WebUtility.UrlEncode(fileName)));
Control.LoadRequest(new NSUrlRequest(new NSUrl(filePath, false)));
Control.ScalesPageToFit = true;
}
}
}