TDennis Posted October 6, 2023 Share Posted October 6, 2023 Hi all, Is there a way to change the background color on a generated QR code? Or even just make it transparent? Tyler Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted October 6, 2023 Share Posted October 6, 2023 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. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 6, 2023 Share Posted October 6, 2023 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). Quote Link to comment Share on other sites More sharing options...
TDennis Posted October 19, 2023 Author Share Posted October 19, 2023 Thanks Guys, defining the background color works. Tyler Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.