I would replace this with a custom "qrcodeUrlTemplate" that would be made available by the print controller.
Maybe the qrcode stuff should be shared in a service? (this is already used in the ContextPopupDirective)