# Elementname: `Barcode`

## Description

Print a 1d or 2d barcode. To be used in PlaceObject.

Allowed attributes: fontface, height, overshoot, select, showtext, type, width

Child elements: (none)

Parent elements: Case, ForAll, Frame, Loop, Otherwise, Overlay, PlaceObject, Position, Td, Transformation, Until, While

### Attributes

fontface (text, optional)

  Name of the fontface of the text that can be placed beneath the barcode. Not used in all codes.

height (number or length, optional)

  Height of the barcode.

overshoot (number, optional)

  The factor denoting the extra length of the outer and middle bar. Only useful with EAN13.

select (XPath Expression)

  The data to be encoded in the barcode.

showtext (optional)

  Should the text be written under the barcode?

  yes: | Write text beneath the barcode.
  no: | Don't display text.

type ()

  Type of the barcode. One of `EAN13`, `Code128` or `QRCode`.

  QRCode: | Create an »optimal« QR code in terms of error correction and size.
  Code128: | Generate a code 128 barcode for numbers and text.
  EAN13: | Create an EAN13 barcode for 13 digits.

width (number or length, optional)

  Width of the barcode

## Example

    <PlaceObject>
      <Barcode select="'speedata Publisher'" type="Code128" showtext="yes"/>
    </PlaceObject>

gives

    <PlaceObject>
      <Barcode select="4242002518169" type="EAN13"/>
    </PlaceObject>

becomes

And finally the QR code

    <PlaceObject>
      <Barcode select="'http://www.speedata.de'" type="QRCode" height="5"/>
    </PlaceObject>

looks like (surprise!)

## See also

PlaceObject

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 2.4.5 | Start page | Command reference | Other language: German