Skip to content

mark1bean/qr-code-for-illustrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qr-code-for-illustrator

Generate QRCodes in Adobe Illustrator and Indesign via ExtendScript.

Usage example

//@include 'QRCode.js'

var qr = new QRCode({
  text: 'The quick brown fox jumps over the lazy dog.',
  container: doc,
  position: [0, 0], // [left, top], measured in points
  width: 72, // measured in points, includes outer border
  margin: 4, // outer border, measured in "squares"
  joinSquares: true, // whether to unite the squares into compound path
});

Show your support

Profile Picture

If any of these scripts will help you, please consider supporting me:

Donate


Installation

Step 1: Download the script files

To install this script, first download this repository (zipped):

Download

Step 2: Place the scripts in the appropriate folder

Expand the zipped file and move the downloaded scripts to Illustrator's scripts folder.

See How To Install Scripts in Adobe Illustrator.

Update: now works in Indesign, too

Why would you do this? Indesign has native functions to generate QR Codes already!

Two reasons:

  1. You have more control over the QR Code, eg. type and error correction level, even shape of squares if you edit the drawSquare functions.

  2. A forum user discovered a bug where the create QR Code methods crashed Indesign when called from within an event handler. I remembered I had written this port for Illustrator and it wasn't much extra work to write some functions to draw into Indesign.

Acknowledgements

About

Generate QRCodes in Adobe Illustrator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published