When attempting to generate a PdfCode128A barcode with the value "ABC-Test-1-4" (without the double quotes) the application throws an error: "Barcode Text contains characters that are not accepted by this barcode specification."
This is the code below:
PdfPage page = document.Pages.Add();
var barcodePosition = new PointF(100, 100));
PdfCode128ABarcode barcode = new PdfCode128ABarcode() { TextDisplayLocation = TextLocation.None };
barcode.Text = $"ABC-Test-1-4";
barcode.Size = new SizeF(printField.Width, printField.Height);
barcode.Draw(page, barcodePosition); // <-- error is thrown here
Using PdfCode128BBarcode doesn't have this issue.