public static void Run()
{
// ExStart:CreatePdf417BarcodeWithChineseCharacters
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ManageBarCodes();
const string codetext = "被洪水困住的";
// Generate the barcode
BarCodeBuilder builder = new BarCodeBuilder(codetext, EncodeTypes.Pdf417);
// Encode the code text and Set the display text
byte[] bytes = Encoding.GetEncoding(936).GetBytes(codetext);
builder.SetBinaryCodeText(bytes);
builder.Display2DText = codetext;
builder.Save(dataDir + "CreatePdf417BarcodeWithChineseCharacters_out.png");
// ExEnd:CreatePdf417BarcodeWithChineseCharacters
}
}