You do not usually put the PDF file itself inside the QR.
Instead, you upload the PDF somewhere people can access it, copy the public sharing link, and turn that link into a QR code.
The flow is:
PDF file → public/shared PDF URL → QR code
When someone scans the QR, their phone opens the PDF link.
With a dynamic QR, you can later change that PDF link without replacing the printed QR.