Android Question Downloading pdf from a webview

chevita87

Member
Licensed User
Good morning, I need help and I cannot find a solution, I need to allow downloading pdf from a webview, if someone can help me I would appreciate it very much.
 

DonManfred

Expert
Licensed User
Longtime User
Why use webview? Use okhttputils2 and download the pdf by its url directly.
 
Upvote 0

chevita87

Member
Licensed User
@DonManfred I managed to do what I needed with AdvancedWebView, but now I have the problem that when I download the pdf if you do a process by php to download it it does not download it well, if the link to the pdf is direct then it downloads perfect, any idea how to solve it?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I managed to do what I needed with AdvancedWebView, but now I have the problem that when I download the pdf if you do a process by php to download it it does not download it well, if the link to the pdf is direct then it downloads perfect, any idea how to solve it?

Use okhttputils2 and download the pdf by its url directly.
 
Upvote 0

chevita87

Member
Licensed User
@DonManfred Can you help me because I can't quite understand okhttputils2? The app is a view of a page made in laravel and I do not have the direct url of the pdf files, that is handled by laravel because you have to log in with a password to be able to download the file
 
Last edited:
Upvote 0
Top