Get the qr code from a pdf file (the code is not an image)

I need to capture the QR code of a pdf file, I have been doing it through Extract Images From PDF and the QR Read From Path, but one of the files I want to read does not have the code as an image but as a text. How can I get it?