Based on this post https://www.b4x.com/android/forum/threads/show-pdf-in-web-view.52814/#post-330898, I supposed it was posible to open a local PDF file in a Webview node, so I tried to open a pdf file with a Webview but until now it was impossible to me to find a way to do it. I creates a text file in the same directory and with the same name than the PDF file, and I can view it with Webview, so the path I'm using is correct.
So the question is, is there other altenative? or definitively is not possible to do it.
or perhaps a step I'm missing.
I also tried with jScriptEngine, but no luck until now.
Here is the code that work for showing a .txt file but if you change the file for a PDF nothing will be shown
Thanks in advance
So the question is, is there other altenative? or definitively is not possible to do it.
or perhaps a step I'm missing.
I also tried with jScriptEngine, but no luck until now.
Here is the code that work for showing a .txt file but if you change the file for a PDF nothing will be shown
B4X:
wvDocument.LoadUrl("file:///e:/" & "Invoice.txt")
Thanks in advance