Sign document with HIBC LIC barcode Symbology
Leave feedback
GroupDocs.SignatureΒ providesΒ HIBCLICCombinedDataΒ classΒ to create HIBC LIC barcode. It is used by manufacturers of health care products for identification purpose. Labelers can encode Primary Data and Secondary Data.
Here are the steps how to add HIBC LIC barcode signature into document with GroupDocs.Signature:
Create new instance ofΒ SignatureΒ class and pass source document path as a constructor parameter.
AnalyzeΒ SignResultΒ result to check newly created signatures if needed.
This example shows how to add HIBCLICCombinedData signature to document:
using(Signaturesignature=newSignature(filePath)){// Create HIBCLICCombinedData data object which composes Primary and Secondary datavarhibclicCombinedData=newHIBCLICCombinedData(){PrimaryData=newHIBCLICPrimaryData(){ProductOrCatalogNumber="12345",LabelerIdentificationCode="A999",UnitOfMeasureID=1},SecondaryAdditionalData=newHIBCLICSecondaryAdditionalData(){ExpiryDate=DateTime.Today,ExpiryDateFormat=HIBCLICDateFormat.MMDDYY,Quantity=30,LotNumber="LOT123",SerialNumber="SERIAL123",DateOfManufacture=DateTime.Today}};// create optionsQrCodeSignOptionsoptions=newQrCodeSignOptions{EncodeType=QrCodeTypes.QR,Left=100,Top=100,// setup Data property to Mailmark2D instanceData=hibclicCombinedData};// sign document to filevarsignResult=signature.Sign(outputFilePath,options);// analyzing resultConsole.WriteLine("List of newly created signatures:");intnumber=1;foreach(BaseSignaturetempinsignResult.Succeeded){Console.WriteLine($"Signature #{number++}: Type: {temp.SignatureType} Id:{temp.SignatureId}, Location: {temp.Left}x{temp.Top}. Size: {temp.Width}x{temp.Height}");}Β }
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: