Documentation
¶
Overview ¶
Package barcode provides named barcode constructors over Paper's component model.
Index ¶
- func NewAutoCode128Row(value string, barcodeProps ...props.Barcode) core.Row
- func NewAutoDataMatrixRow(value string, rectProps ...props.Rect) core.Row
- func NewAutoEAN13Row(value string, barcodeProps ...props.Barcode) core.Row
- func NewAutoQRRow(value string, rectProps ...props.Rect) core.Row
- func NewCode128(value string, barcodeProps ...props.Barcode) core.Component
- func NewCode128Col(size int, value string, barcodeProps ...props.Barcode) core.Col
- func NewCode128Row(height float64, value string, barcodeProps ...props.Barcode) core.Row
- func NewDataMatrix(value string, rectProps ...props.Rect) core.Component
- func NewDataMatrixCol(size int, value string, rectProps ...props.Rect) core.Col
- func NewDataMatrixRow(height float64, value string, rectProps ...props.Rect) core.Row
- func NewEAN13(value string, barcodeProps ...props.Barcode) core.Component
- func NewEAN13Col(size int, value string, barcodeProps ...props.Barcode) core.Col
- func NewEAN13Row(height float64, value string, barcodeProps ...props.Barcode) core.Row
- func NewQR(value string, rectProps ...props.Rect) core.Component
- func NewQRCol(size int, value string, rectProps ...props.Rect) core.Col
- func NewQRRow(height float64, value string, rectProps ...props.Rect) core.Row
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAutoCode128Row ¶
NewAutoCode128Row encodes value as a Code 128 barcode in a row whose height follows the code itself.
func NewAutoDataMatrixRow ¶
NewAutoDataMatrixRow encodes value as a Data Matrix code in a row whose height follows the code itself.
func NewAutoEAN13Row ¶
NewAutoEAN13Row encodes value as a EAN-13 barcode in a row whose height follows the code itself.
func NewAutoQRRow ¶
NewAutoQRRow encodes value as a QR code in a row whose height follows the code itself.
func NewCode128 ¶
NewCode128 encodes value as a Code 128 barcode component.
func NewCode128Col ¶
NewCode128Col encodes value as a Code 128 barcode in a column spanning size grid units.
func NewCode128Row ¶
NewCode128Row encodes value as a Code 128 barcode in a row of the given height in millimeters.
func NewDataMatrix ¶
NewDataMatrix encodes value as a Data Matrix code component.
func NewDataMatrixCol ¶
NewDataMatrixCol encodes value as a Data Matrix code in a column spanning size grid units.
func NewDataMatrixRow ¶
NewDataMatrixRow encodes value as a Data Matrix code in a row of the given height in millimeters.
func NewEAN13Col ¶
NewEAN13Col encodes value as a EAN-13 barcode in a column spanning size grid units.
func NewEAN13Row ¶
NewEAN13Row encodes value as a EAN-13 barcode in a row of the given height in millimeters.
Types ¶
type Type ¶
type Type = consts.BarcodeType
Type is the barcode symbology to encode with.
const ( Code128 Type = consts.BarcodeCode128 EAN13 Type = consts.BarcodeEAN )
The linear symbologies this package can encode.