Exemple #1
0
func main() {
	text := "http://denyspotapov.com/"
	code, _ := datamatrix.Encode(text)
	png.Encode(os.Stdout, hor(code, 10))
}
Exemple #2
0
// RegisterDataMatrix registers a barcode of type DataMatrix to the PDF, but not
// to the page. Use Barcode() with the return value to put the barcode on the
// page.
func RegisterDataMatrix(pdf barcodePdf, code string) string {
	bcode, err := datamatrix.Encode(code)
	return registerBarcode(pdf, bcode, err)
}