Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Open a pdf file from the Resources folder on iOS

$
0
0
After successfully asking for help, on Android I am able to open a pdf file. Note the pdf file must have a .bytes extension. string fileName = "fileName"; TextAsset pdfTemp = Resources.Load (fileName, typeof(TextAsset)) as TextAsset; System.IO.File.WriteAllBytes(Application.persistentDataPath + "/" + fileName+ ".pdf", pdfTemp.bytes); Application.OpenURL(Application.persistentDataPath + "/" + fileName + ".pdf"); However, this does not work on iOS. Anyone know how this could be done?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>