Free Support Forum - aspose.com

REg: Issue with 2D Barcode Generation

Hello,

We have generated Barcode with Symbology.PDF417.

The following are the samples generated using Aspose.BarCode.jar (385 KB)

Attatched Sample Barcode 1.pdf contains 2D Barcode which is read with both Java (BarCodeReader) and Scanner

Attatched Sample Barcode 2.pdf contains 2D Barcode which is read with Java (BarCodeReader) and Failed with Scanner

The Following lines of java code is used

BarCodeBuilder barCode = new BarCodeBuilder();
barCode.setSymbology(Symbology.PDF417);
barCode.setGraphicsUnit(GraphicsUnit.MILIMETER);
barCode.setCodeText(BarCodeHL7.toString());
barCode.setPDF417AspectRatio(0.25f);
barCode.setBorderVisible(false);
barCode.setPDF417ErrorLevel(PDF417ErrorLevel.LEVEL4);
barCode.setCodeTextVisible(false);
barCode.setXDimension(0.5f);
barCode.setYDimension(1.5f);
barCode.setMargins(new Margins(1,1,1,1));

Please Assit us in this regard.

Thanks
Srihari
Medplexus Inc


This message was posted using Email2Forum by ShL77. (attachment)

Hi Srihari,

Thanks for considering Aspose.

Could you please provide the code (including codetext value and settings) to generate the barcode in “Sample BarCode 2.pdf” file? We will look into it.

Hello,

To generate PDF417 2D Barcode the following lines of java code is used

BarCodeBuilder barCode =

barCode.setGraphicsUnit(GraphicsUnit.

barCode.setCodeText(

barCode.setPDF417AspectRatio(0.25f);

barCode.setBorderVisible(

barCode.setPDF417ErrorLevel(PDF417ErrorLevel.

barCode.setCodeTextVisible(

barCode.setXDimension(0.5f);

barCode.setYDimension(1.24f);

barCode.setMargins(

barCode.save("C:\\Barcode.jpg");

}

The generated Barcode.jpg is not recognized.

Thanks

Srihari


This message was posted using Email2Forum by ShL77.