Hello,
We have a customer that we’re sending PDFs to and their system is complaining that the barcode that we are embedding hasn’t been flattened. Is there a way to tell BarcodeGenerator.save() to flatten a generated tiff?
Here’s a sample the code we’re using.
private CreateBarCodeResults saveBarCodeImageInRgb(final BarcodeGenerator barcodeGenerator) {
CreateBarCodeResults results;
try {
barcodeGenerator.save(rgbFileName, this.getBarCodeImageFormat()); //this.getBarCodeImageFormat is set to BarCodeImageFormat.TIFF
barcodeGenerator.dispose();
results = new CreateBarCodeResults(Optional.of(rgbFileName), Optional.empty());
} catch (final Exception e) {
logger.catching(e);
results = new CreateBarCodeResults(Optional.empty(), Optional.of(e.getMessage()));
}
.......
.......
......
return results;
}