Hi Olivier,
Please try webview.of_loadlocalfile().
https://www.appeon.com/support/documents/appeon_online_help/2017/workarounds_and_api_guide/ch01s04s16.html#d0e25241
In iOS, the following file types can be loaded and displayed: PDF, TXT, XML, Word, Excel, and PPT. Android supports fewer file types as it can only support text types such as TXT, XML, and HTML. Android does not support loading the PDF file, therefore you will not be able to load the local PDF file in Android, but if you put the PDF file on a Web site accessible via Internet, and allow the mobile device to connect with the Web site and Google Docs (docs.google.com), then Appeon can parse the PDF file online via Google Docs (docs.google.com) and then load the PDF file into the Android device, for example, if you put the PDF file online as http://demo.appeon.com/AEM/appeon_mobile_2013R2_datasheet.pdf, then Appeon mobile app will automatically display the online PDF file via URL http://docs.google.com/gview?embedded=true&url=http://demo.appeon.com/AEM/appeon_mobile_2013R2_datasheet.pdf.
On Android, you can try run function.
https://www.appeon.com/support/documents/appeon_online_help/2017/features_help_for_appeon_mobile/ch06s01s01.html#System_Functions_System___Environment_Functions
This function is supported in Android only, and unsupported in iOS.
Run ( string {, windowstate } )
The string parameter can only be the full path of the file name; it cannot be a program name, or a file name without a path. The windowstate parameter is unsupported; the program window will be maximized by default when run in Android.
Supported syntax:
Run ("/storage/emulated/0/android/data/com.appone.mobile/files/626342311/plugin/test.pdf")
This will give control to Android, and Android will decide whether to prompt the user to select a program to open the PDF file (if there is more than one PDF viewer program installed on it), or directly open the PDF file if only one PDF viewer program is detected or a default PDF viewer program is set before. Then the Appeon mobile app will be switched to run in the background, and the PDF viewer program will be running at the foreground.
Unsupported syntax: Run ("Clock", Minimized!)
Regards,
ZhaoKai
I do not have an example currently. However, I have done this before in the past.
Regards ... Chris