Knowledgebase
How to Display PDF Files on Mobile Devices
Posted by Nico Wang on 03 March 2015 01:38 PM

Method 1: Upload the PDF files to the web server and then display them with the following code:

inet l_inet

l_inet = create inet

l_inet. HyperLinkToURL("http://192.168.168.18/files/test.pdf")

 

Method 2: Use the Webview objects provided in the Appeon 2015 to display the PDF files locally. Below is the related help documentation and code for your reference:

 http://www.appeon.com/support/documents/appeon_online_help/2015/workarounds_and_api_guide/ch01s04s13.html#d0e17187

int  li_ret

string ls_filepath

 

ls_filepath = appeongetcachedir()+"/plugin/test.pdf"

li_ret = uo_webview.of_loadlocalfile (ls_filepath)

if li_ret > -1 then

 messagebox("note:", "success of_loadlocalfile:FilePath:" +ls_filepath + ", return value:" +  string(li_ret))

else

messagebox("note:", "failed of_loadlocalfile:FilePath:" +ls_filepath + ", return value:" +  string(li_ret))

end if

(0 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 

Please login if you wish to leave a comment about this article.

Help Desk Software by Kayako Fusion