How to copy a qr code from a pdf on android?

I’ve got a PDF ticket on my Android phone with a QR code I need to use elsewhere, but long-pressing only selects text. How do I copy or extract just the QR code from the PDF?

I had the same issue on my phone, and the easiest way was to take a screenshot, crop it around the QR code, then save or share that image. If you need the information stored in the code rather than the picture, open the cropped image in Google Lens and scan it.

Try taking a screenshot instead of long-pressing, then crop it down to just the qr code in your phone’s gallery editor. What app are you opening the pdf in?

The simplest workaround on Android is just taking a screenshot.

  1. Zoom in on the QR code so it is sharp.
  2. Take a screenshot using power and volume down.
  3. Crop the image down to the code in your gallery app.

Long press won’t work here because the QR is likely an image, not text. Simplest fix: screenshot the page, crop it down to just the QR, then open that image in your camera or Google Lens to scan it. If you have a laptop handy, opening the PDF there and snipping the code gives a cleaner result. Keep a backup of the original file either way.

I screenshot the QR on my ticket and crop it in the photos app.
Don’t bother with long press, that only selects text.
PDFcap is the easiest, open the PDF and export the page as an image then crop the code.
Not sure if it’s the same on every Android phone.

I would first try opening the ticket full screen and taking a screenshot of just the QR code, then crop it in your phone’s Photos or Gallery app. That usually preserves enough detail for another scanner to read it.

If the code is very small, zoom in before taking the screenshot. Avoid editing, resizing, or adding filters, since QR scanners can be picky.

Had the same thing with a boarding pass last month. I opened the PDF, zoomed in so the QR code was sharp, took a screenshot, then cropped it in Google Photos. Long-press usually cannot select images embedded in a PDF. Test the cropped code with another phone before relying on it, and keep some white space around the edges.

easiest fix is take a screenshot of that page and crop it down to just the qr code. most gallery apps have a crop tool built in. i’ve done that with ticket pdfs before and scanners read it fine.