Relative Content

Tag Archive for itext

iText Core Data Matrix barcode encoding issue

It seems that there is an issue with iText Data Matrix barcodes, even with iText 8.0.4, if AUTO encoding is used. If I force to ASCII encoding, I do not see the issue. What is happening is that under certain circumstances, some of the characters, but not all of them, are flipping case (upper goes to lower, lower goes to upper). I am currently working around by forcing ASCII encoding, but thought this is probably worth investigating and fixing. Below is sample code demonstrating first a correct barcode and then an incorrect barcode.

iText Core Data Matrix barcode encodation issue

It seems that there is an issue with iText Data Matrix barcodes, even with iText 8.0.4, if AUTO encodation is used. If I force to ASCII encodation, I do not see the issue. What is happening is that under certain circumstances, some of the characters, but not all of them, are flipping case (upper goes to lower, lower goes to upper). I am currently working around by forcing ASCII encodation, but thought this is probably worth investigating and fixing. Below is sample code demonstrating first a correct barcode and then an incorrect barcode. The correct barcode scans

iText 8.0.4 PDFStamper form fills radio buttons revert to circle from any other style (square, diamond, etc.)

We have a library of PDF forms which we’re filling with variable content in text, check box and radio button form fields. Since the form is a template, we use the PDFStamper to perform the form fills. Everything is filling and checking appropriately. The problem we have is that the Radio Button controls are set up (in the form) to display a check mark and not the conventional dot within a circle. When filling the form manually with Acrobat reader, the buttons appear as check boxes however; after filling with iText PDFStamper, the resulting PDF radio buttons revert to their conventional style (dot within a circle).