Jump to content

QR Codes


TDennis

Recommended Posts

If you are using the text based QR rule you should be able to assign a background color to the text frame. The graphic based QR rule will always be a solid white. A workaround for this is to create your color box in Illustrator, set the opacity mode to Multiply, save it as a PDF. Then bring it into a graphic frame that overlays your QR frame.

Link to comment
Share on other sites

 

3 hours ago, TDennis said:

Is there a way to change the background color on a generated QR code?

In FusionPro 13.0, if you convert the graphic QR barcode rule to JavaScript, the code at the end will look like this:

var DataToEncode = UntaggedRuleOrField(RuleOrFieldToEncode);
return MakeQRBarcodeGraphic(DataToEncode, ProcessTilde,
                            EncodingMode, ErrorCorrectionMode, PreferredFormat, foreColor);

There are actually a few more optional parameters there.  The next one is the background color, so you can just put the name of the color you want there, like so:

var DataToEncode = UntaggedRuleOrField(RuleOrFieldToEncode);
return MakeQRBarcodeGraphic(DataToEncode, ProcessTilde,
                            EncodingMode, ErrorCorrectionMode, PreferredFormat, foreColor, "Red");

3 hours ago, TDennis said:

Or even just make it transparent?

As Thomas alludes to, a text-based barcode always has a transparent background, as the black (or whatever foreground color) boxes are actually text-based glyphs.

If you want a graphic barcode to have a transparent background, in FusionPro 13.0, you can specify a spot color for the foreground.  This will generate a vector-based graphic with no background (effectively transparent).  You can set any color to be a spot color in the Colors dialog (under Advanced in the FusionPro menu).

In an upcoming version of FusionPro (13.1), all barcodes will be vector graphics with transparent backgrounds by default, with settings to modify either the foreground or background colors (or both).

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...