Aspose.BarCode.Examples.CSharp.ManageBarCodes.CreatePdf417BarcodeWithTurkishCharacters.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:CreatePdf417BarcodeWithTurkishCharacters
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_ManageBarCodes();
            const string codetext = "AYŞE" + "\n" + "Ümit" + "\n" + "Ü[email protected]" + "\n" + "Türkiye";

            // Generate the barcode
            BarCodeBuilder builder = new BarCodeBuilder(codetext, EncodeTypes.Pdf417);

            // Encode the code text and  Set the display text
            byte[] bytes = Encoding.GetEncoding(1254).GetBytes(codetext);
            builder.SetBinaryCodeText(bytes);
            builder.Display2DText = codetext;
            builder.Save(dataDir + "CreatePdf417BarcodeWithTurkishCharacters_out.png");
            // ExEnd:CreatePdf417BarcodeWithTurkishCharacters
        }
    }
CreatePdf417BarcodeWithTurkishCharacters