When generating a PDF417 barcode, the ‘~’ characters are not encoded. For example, I use:
BarCodeBuilder b = new BarCodeBuilder() { SymbologyType = Symbology.Pdf417, AspectRatio = 4f, Pdf417ErrorLevel = Pdf417ErrorLevel.Level4, CodeLocation = CodeLocation.None };
b.CodeText = “A^aa^a^a^a^someFreeText~B^bb^b^b^b^OtherFreeText~C^cc^c^c^c^LastFreeText|”;
using (MemoryStream ms = new MemoryStream())
{
b.Save(ms, BarCodeImageFormat.Jpeg);
…
}
After I save the image to disk, or merge the image into a PDF document and scan the barcode, the string becomes:
A^aa^a^a^a^someFreeTextB^bb^b^b^b^OtherFreeTextC^cc^c^c^c^LastFreeText|
Please advise on how to correct this. Thank you.