Android Question Reading QRCode from PDF

pliroforikos

Active Member
Licensed User
Hello
In this topic user yiankos1 created a tutorial how to scan qr code from pdf.

I created a small project that you can find bellow and works fine. Use it as you like.

But there is a small problem. It uses library pdfium which is huge. Only the small project is 22MB compiled.

From this library we need only a few commands

B4X:
        Private pdf As PdfiumCore

        pdf.Initialize("pdf")

        glDoc = pdf.newDocument(File.DirInternal,"qr.pdf", 268435456,"") 'LOAD YOUR PDF FILE

        pdf.openPage(glDoc,0) ' Mandatory to do before you want to render a Page

        pdf.renderPageBitmap(glDoc,bmp,0,0,0,768dip,1024dip)


Can we use other library to convert pdf page in bitmap or reduce librarys size?

Thank you
 
Last edited:

Similar Threads

Top