You could use the following widget: https://appstore.home.mendix.com/link/app/1615/
It uses the Google API for generating QR codes as images. You can then place that generated image in your PDF document.
Or try the following widget: https://appstore.home.mendix.com/link/app/45725/