hello, i have this code
But the pdf is not showed. Can someon help me ? I try pfview1.frombytes,pfview1.fromfile. etc withouth results. Thanks in advance
B4X:
Sub btnDocumentazione_Click
Dim CC2 As ContentChooser
CC2.Initialize("CC2")
CC2.Show("application/pdf", "Choose file")
'CC.Show("image/*", "Choose image")
'CC.Show("audio/*", "Choose audio file")
End Sub
Sub CC2_Result (Success As Boolean, Dir As String, FileName As String)
If Success Then
'imgView.Bitmap=LoadBitmapSample(Dir,FileName,800,600)
Dim cfg As Configurator = PDFView1.FROMURI(Dir,FileName)
cfg.autoSpacing(True).enableSwipe(True).pageSnap(True).swipeHorizontal(False).addOnErrorListener.addOnLoadCompleteListener.addOnPageChangeListener.addOnPageErrorListener.addOnTapListener.load
Log(Dir)
Log(FileName)
End If
End Sub
But the pdf is not showed. Can someon help me ? I try pfview1.frombytes,pfview1.fromfile. etc withouth results. Thanks in advance