public byte[] GetDataMatrixAsPdf(BarcodeToolkit.BarcodeData data, int left, int top, int width, int height) { _tool.DataToEncode = data; _tool.PDFDocumentWidth = width; _tool.PDFDocumentHeight = height; return(_tool.GetPDFWithBarcode(top, left)); }
public BarcodeInfo GetBarcode(BarcodeData encodeData) { Matrix matrix = new Matrix(); int width = 144; BarcodeInfo result = new BarcodeInfo(); result.ResultCode = CreateDataMatrix(ref matrix, ref width, encodeData.Name, encodeData.Address, encodeData.Post, encodeData.Amount, encodeData.Receiving, encodeData.Notes, encodeData.Additions, encodeData.Department); result.Width = width; result.Data = matrix.matrix; return(result); }
public string GetDataMatrixAsHtml(BarcodeToolkit.BarcodeData data, int left, int top) { _tool.DataToEncode = data; return(_tool.GetHTMLWithBarcode(top, left)); }
public byte[] GetDataMatrix(BarcodeToolkit.BarcodeData data, System.Drawing.Imaging.ImageFormat format) { _tool.DataToEncode = data; return(_tool.GetBarcode(format)); }