Android Question reading pfd file from web

jchal

Active Member
Licensed User
Longtime User
hi all
is it possible to read a pdf file from a web url eg www.mydomainname.com/test.pdf but with out the external reader.
i has a look at th pdf reader library but it is not possible to do it.
how can i do it?
 

jchal

Active Member
Licensed User
Longtime User
it is not what i wanted to do, i want to read it internaly in b4a and i dont want to down load it and read it via the reader
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
All readers, including those for PCs, download a copy of the file to be read, only saved in the temporary browser directory (cache). There is no such thing as reading how the videos are streming.

You can intercept the WebView_OverrideUrl (Url As String) event and if the url ends with ".pdf" display the file as you prefer, with a reader, with a library (ce There are many for b4a) or how do you think
B4X:
Sub WebView_OverrideUrl (Url As String) As Boolean
    If Url.EndsWith(".pdf") Then
        'Download file
        'Display file
        Return True
    End If
End Sub
 
Last edited:
Upvote 0
Top