Barcode scan from pdf file

I need to implement a barcode scan from PDF file (not by camera), same behavior that banking apps do when open PDF file bill by share then send user to pay it. Anyone can help me, if there is some plugin or code sample for that?