IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57457 - 03/23/20 08:03 AM How to define a fixed size for a QR Code in Planet
msymonds Offline
OL Newbie

Registered: 05/14/19
Posts: 3
I am building a QR code in Planet Press Classic (PP version 7), and wondered if there is anyway to fix the size of the barcode?
I ask because depending on what data is passed to my barcode, it expands when passed a large amount amount, and conversely shrinks when passing the a small amount of data.

This is what I have in the Barcode
Basic Attributes - just the height set to 4.6cm (width is greyed out so cannot be set)

Repeat - no options to configure

Snapping Points - none set

Barcode options - Barcode type - QRCode
Bar width (in mils) = 30
2D barcode options - Barcode mode - Full
Error Correction level - Level S

Data - using a Custom data selection of a string with the Skip empty lines in data selection/Trim trailing spaces/Trim leading spaces - all boxes NOT selected

Manipulation - Orientation - Vertical only
Movable - Both
Selectable - Box ticked for can be selected on the page

Press Talk before - **not used - empty**

Press Talk After - **not used - empty**

I was hoping to keep the size of the QR code to 4.6cm

Is there anyway of doing this or am I stuck with the fact that the barcode will grow and shrink depending on how much data is passed?

Top
#57463 - 03/27/20 11:05 AM Re: How to define a fixed size for a QR Code in Planet [Re: msymonds]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
It will grow and shrink based on the data. The height value, although available is always resized based on the barcode height. So it is not an option.

The only way to achieve what you want is to execute your barcode twice.

Once, outside of the printing area just to get the actual width of it once produce with the data. Then store that width into a global variable, from the Press Talk After. Like this:
Code:
&globalVariable := &width


Now that you know what will be the width of you barcode, you can, in a second barcode that is shown in your printing area, use the scale command to resize your barcode in the PressTalk Before of your second barcode.

This way, you will ensure a fixed width. Note that changing the width of a barcode by scaling it can cause barcode reader to not read it properly if it goes outside of the barcode specifications.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top