User guide

SD/CD Series Card Printers OpenCard Data Format Guide 21
Adding Elements to the Card Format
This section provides information about how to apply the elements available to create an
OpenCard card format. Elements are listed here in the order they are applied in the SVG card
format document.
Card Side Layers
Within the SVG document, a card format must define a front side layer and/or a back side layer.
Use an ID of “CARD_FRONT” or “CARD_BACK”.
Add personalization layers as children of each of the front and back side layers as needed.
“CARD_FRONT” and “CARD_BACK” are the only layer IDs OpenCard recognizes at this level.
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1013px" height="638px" xmlns="http://www.w3.org/2000/svg">
<g id="CARD_FRONT">
... front side card personalization operations go here ...
</g>
<g id="CARD_BACK">
... back side card personalization operations go here ...
</g>
</svg>
Re-Mapping Data Characters with datacard:translations
Translations allow for re-mapping of data characters. Using this element, the card format
designer can define a list of characters to translate.
The datacard:translations element is placed at the same level as the card side layers because
translations are applied to the data stream before it is merged into the card format. Translations
affect the value of the data merged into any operation defined in the card format.
Hexadecimal Notation for Translations
For datacard:translations, control characters with values of less than 0x20 (ASCII SPACE
character) must be encoded in hexadecimal notation using a leading 0x. For example, represent
the null character 0x00. If a translation maps any data stream character to a null (0x00) then the
presence of the null serves to end the data line at that point. Any data following the character
that translates to null is not merged into the card format.
Card Side Layers Example