com.aspose.barcode

Class QrExtCodetextBuilder



  • public class QrExtCodetextBuilder
    extends ExtCodetextBuilder

    Extended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode

    Use Display2DText property of BarCodeBuilder to set visible text to removing managing characters.


     
      Example how to generate FNC1 first position for Extended Mode
      
      //create codetext
      QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
      lTextBuilder.AddFNC1FirstPosition();
      lTextBuilder.AddPlainCodetext("000%89%%0");
      lTextBuilder.AddFNC1GroupSeparator();
      lTextBuilder.AddPlainCodetext("12345<FNC1>");
      
      //generate codetext
      string lCodetext = lTextBuilder.GetExtendedCodetext();
      
    Example how to generate FNC1 second position for Extended Mode
      //create codetext
      QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
     lTextBuilder.AddFNC1SecondPosition("12");
     lTextBuilder.AddPlainCodetext("TRUE3456"); 
      
      //generate codetext
      string lCodetext = lTextBuilder.GetExtendedCodetext();
      
    Example how to generate multi ECI mode for Extended Mode
      //create codetext
      QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder();
     lTextBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
     lTextBuilder.AddECICodetext(ECIEncodings.UTF8, "Right");
     lTextBuilder.AddECICodetext(ECIEncodings.UTF16BE, "Power");
     lTextBuilder.AddPlainCodetext(@"t\e\\st");   
      
      //generate codetext
      string lCodetext = lTextBuilder.GetExtendedCodetext();
      

    • Constructor Detail

      • QrExtCodetextBuilder

        public QrExtCodetextBuilder()
    • Method Detail

      • addFNC1FirstPosition

        public void addFNC1FirstPosition()

        Adds FNC1 in first position to the extended codetext items

      • addFNC1SecondPosition

        public void addFNC1SecondPosition(String codetext)

        Adds FNC1 in second position to the extended codetext items

        Parameters:
        codetext - Value of the FNC1 in the second position
      • addFNC1GroupSeparator

        public void addFNC1GroupSeparator()

        Adds Group Separator (GS - '') to the extended codetext items

      • getExtendedCodetext

        public String getExtendedCodetext()

        Generates Extended codetext from the extended codetext list.

        Specified by:
        getExtendedCodetext in class ExtCodetextBuilder
        Returns:
        Extended codetext as string