Free Support Forum -

PDF417 - [The CodeText is not valid for Text Compaction Mode]


I am trying to generate a PDF 417 code using .net library but when the text includes a apostrophe (’) , I get the following error message:

[The CodeText is not valid for Text Compaction Mode. Try use the binary compaction mode instead.]

If I change the mode to Binary compaction mode, the same error occurs.

Is there a way around this?


This issue is reproduced here and logged in our database for further investigation and a fix. You will be notified here once any update is ready for sharing.

This issue is logged as:
BARCODENET-37659 - PDF417 barcode cannot be generated with text having apostrophe


Please try our latest version/fix: Aspose.BarCode for .NET 20.10 (Downloads section / Nuget repos.). Your issue is resolved now.