Android Question PDFium releasing resources

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I am using PDFium to display a PDF using the Configurator and PDFView objects. The app can display a number of PDF's.

B4X:
            Private cfg As Configurator = wvPDF.fromUri(selectedfile.dir,SelectedFile.RealName)
            cfg.SetEventname("Pdfium")
        cfg.autoSpacing(True).enableSwipe(True).pageSnap(True).swipeHorizontal(False).addOnErrorListener.addOnLoadCompleteListener.addOnPageChangeListener.addOnLoadCompleteListener.load

How do I need to release the resources when I'm done.

There is a CloseDocument on the PDFCore object but this takes a PDFDocument which I don't seem to have a reference to.

Thanks
 
Top