# Generate a QR code that downloads or displays pdf file

**URL:** <https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 7, 2025, 5:23pm UTC](https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046 "2025-02-07T17:23:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![richhull](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@richhull](https://forum.inductiveautomation.com/u/richhull)\
**Post date:** [February 7, 2025, 5:23pm UTC](https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046/1 "2025-02-07T17:23:45Z")

</div>

I am trying to use ignition perspective's QR component to generate a path to a view I have created, directing the user to that view. This is the bare minimum I am trying to accomplish. For the long term however, I would like to QR code to allow a download of a pdf but I'm not sure if that is possible. Is there anything I can do to accomplish this?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 7, 2025, 5:41pm UTC](https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046/2 "2025-02-07T17:41:57Z")

</div>

At the minimum you would need to decide on a format for the data in the QR to script something in Ignition to be able to parse/handle it when it's scanned.

If you are going to mix and match your QR codes (some do nav and some do download), then you need to decide on unique identifiers for each type so your script can determine which type of QR code was scanned.

From there, based on what was in the QR, perform navigation via `system.perspective.navigate` or call `system.perspective.download` to prompt the user to download something.

For actually generating the barcode, you can use the Reporting module for Ignition, or you can use a 3rd party tool.

---

<div class="post-metadata">

**Author:** ![richhull](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@richhull](https://forum.inductiveautomation.com/u/richhull)\
**Post date:** [February 14, 2025, 9:33pm UTC](https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046/3 "2025-02-14T21:33:44Z")

</div>

So to call `system.perspective.download` or `system.persepective.navigate`, I would need to design a scanning application in ignition for users to use to scan said QR code and view/download its contents?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 14, 2025, 9:49pm UTC](https://forum.inductiveautomation.com/t/generate-a-qr-code-that-downloads-or-displays-pdf-file/102046/4 "2025-02-14T21:49:30Z")

</div>

Yes, either that or integrate the barcode scanning into your existing application (that you want to navigate in).

That would probably mean either running your application in the mobile app or putting a [barcode scanner input](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-input-palette/perspective-barcode-scanner-input) component on all your views, or maybe a designated view to allow navigation/download.
