Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

open local pdf file in webview in alloy project

$
0
0

Hi,

I want to open a local pdf file in alloy project

I have a folder named files in app folder. app -> files -> folder -> file.pdf

here the code i write to open file :

var filepath = Ti.Filesystem.resourcesDirectory + '/files/folder/file.pdf';
$.mywebview.url = filepath
i tested too with :
var filepath = Ti.Filesystem.resourcesDirectory + 'files/folder/file.pdf';
or
var filepath = Ti.Filesystem.applicationDataDirectory + 'files/folder/file.pdf';
or
var filepath = Ti.Filesystem.applicationDataDirectory + '/files/folder/file.pdf';
and tried to use data property in webview an read file without result...

any help ?

thank you.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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