2022.2

Table Of Contents
ThebarcodecanbeaddedeitherusingtheBarcodetoolbarbuttonorthroughselectingInsert > Bar-
codeonthemenu;see"AddingaBarcode"onpage175.
Initiallythebarcodewillhavethebarcodetype'sdefaultproperties.Tochangethoseproperties,such
asthescaleandcolor,opentheBarcodepropertiesdialog:right-clickthebarcode(ontheDesigntab
intheWorkspace)andselecttheBarcode...optioninthecontextmenu.
Barcode properties
ThistopicliststhepropertiesofthebarcodetypeRoyalMail2DMailmark.Forthepropertiesofother
barcodetypes,see"Barcodetypeandproperties"onpage177.
Module width
Therecommendationistoprintthesebarcodeswithamodulesizeof0.5mm,whichequatesto6dots
whenprintedat300dpi.Themaximummodulesizeforprintingis0.7mm.
Preferred version
Usethedrop-downtoselectthesizeofthebarcode,inanumberofmodules.Theactualsizeofthebar-
codecanbe12mmx12mmupto22.4mmx22.4mm,dependingonthepreferredversionandthe
modulewidth.
Scale
Definesifandhowtherenderedbarcodeisscaledinrelationtotheparentelement:
l
None:Thebarcodeisrenderedbasedonthemodulewidth.
l
Proportional:Thebarcodeisstretcheduptowhereitfitseitherthewidthorheightoftheparent
box,whicheverrequiresthelessstretching.
Tilde processing
Checkthisoptiontoprocesstilde(~)charactersinthedataasspecialcharacters.(SeetheJava4less
BarcodesGuidetolearnwhatthetildecharactercanbeusedfor.)
Thetildeisexpectedtobefollowedbythe'd'characterand3digitsrepresentinganASCIIcharacter:
~dNNN.Forexample,~d013representsacarriagereturn.
Notethatwiththisoptionchecked,anytildethatneedstobeincludedintheoutputmustbeescapedby
addinganothertilde:~~.
Color
TheColorgroupallowsyoutochooseadifferentBarcodecolor(insteadofblack)andBackground
color(insteadofwhite),bytypingahexadecimalcolorvalue(seeforexamplew3school'scolorpicker).
Page 216