Save barcode as Java Image Object

Hello,

Is it possible to save the barcode image as a Java image object instead of saving it to local disk? Our goal is to take that Java image object and embed it in a PDF file.

We have read your documentation on this but would just like to confirm that it is possible.

Thank you for your support!

Hello,

Thank you for your post!

Please use BarCodeBuilder's generateBarCodeImage() method to get an Image object:

com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder();

java.awt.Image img = b.generateBarCodeImage();

Best regards.