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:
parent
45c875d23f
commit
b4c43e6b96
403 changed files with 108954 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue