Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
3

How do I create a QR code that links to the document location and place it on the artboard?

New Here ,
Oct 25, 2023 Oct 25, 2023

Copy link to clipboard

Copied

I am looking for a way to create a QR Code that links to the file path/location of the current file and puts this QR Code in the bottom right corner the artboard. I have searched for plugins and scripts that will do this, but to no avail.

TOPICS
How-to , Scripting , Third party plugins

Views

444
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 25, 2023 Oct 25, 2023

Hi @JosephD333, I have adapted Kazuhiko Arase's QRCode.js for use with Illustrator. You can download the script files.

 

First you must put "QRCode.js" in the same folder as the following script, and try this:

//@include 'QRCode.js'

/**
 * Draws a QRCode containing the document's URI.
 * @author m1b
 */
(function () {

    var doc = app.activeDocument;

    // this URI might not be best for your situation
    var docURI = 'file://' + encodeURI(doc.fullName.fsName);

    // draw the QRCode
    v
...

Votes

Translate
Adobe
Community Expert ,
Oct 25, 2023 Oct 25, 2023

Copy link to clipboard

Copied

You need this for printing?

There has recently been a thread about that exact issue.

https://community.adobe.com/t5/illustrator-discussions/create-a-scan-code-to-open-an-illustrator-fil... 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 26, 2023 Oct 26, 2023

Copy link to clipboard

Copied

LATEST

I hadn't seen this one! I do need it for printing and we use Thrive so I will check this out! Thanks.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2023 Oct 25, 2023

Copy link to clipboard

Copied

Hi @JosephD333, I have adapted Kazuhiko Arase's QRCode.js for use with Illustrator. You can download the script files.

 

First you must put "QRCode.js" in the same folder as the following script, and try this:

//@include 'QRCode.js'

/**
 * Draws a QRCode containing the document's URI.
 * @author m1b
 */
(function () {

    var doc = app.activeDocument;

    // this URI might not be best for your situation
    var docURI = 'file://' + encodeURI(doc.fullName.fsName);

    // draw the QRCode
    var qr = new QRCode({
        text: docURI,
        doc: doc,
        left: 0, // points
        top: 0, // points
        width: 100, // points
    });

})();

 

Notice for your case the variable "docURI". I have made a file URI that works for me on MacOS. You might need to construct it differently for your specific needs. You also need to set the position and width to suit your artwork. You can also pass it colors and adjust QR code settings.

- Mark

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines