Since QR codes are images there are several ways to put them in a PDF. The two primary ways are as a bitmapped image or as PostScript. Bitmapped images originally were in TIFF form, but as far as I know, modern PDFs can handle things like PNG directly.
PostScript (and SVG) are the better option, since they're actual graphic commands and render cleanly regardless of how you zoom in or out or print. Bitmapped images can become blurred or distorted when scaled. PostScript, incidentally, is the "machine language" of PDFs and EPS.
PostScript is a programming language, so if desired you could actually generate a rendering program PS function for QR output and feed it a string of bit values. Or, take the easy way out and just render a matrix of black and white rectangles.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
I'm not sure if I approve of this interruption. But this tiny ad checks out:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop