I may be referring to the pdfium function to load from a stream, but I can't get it to work.
B4X:
Dim url As String = cdata.Get("pdfUrl")
Dim job As HttpJob
job.Initialize("DownloadPDF", Me)
job.Download(url)
Wait For (job) JobDone(job As HttpJob)
If job.Success Then
PDFView1.fromStream(job.GetInputStream)
job.GetInputStream.Close ' Asegúrate que esta es la manera correcta de manejar el cierre
Else
Log("Error downloading PDF: " & job.ErrorMessage)
End If
job.Release
Dim pdfUrl As String = "https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf"
webview.Loadurl("https://docs.google.com/gview?embedded=true&url=" & pdfUrl)