We have a Jasper report with a barcode. After the report was generated and saved as PDF foramt. Our printer is not able to print the barcode and it was printed as black box. The reason was that printer doesn't have any printer drivers in order to gain printing speed for automation system.
The converted PDF report would have saved the barcode as an image instead of raw data and that's why the printer cannot handle it and printed the barcode as a black box.
Do we have any options to save the barcode in raw data format when converting a Jasper report into a PDF file?
When I include a barcode in my reports I used the Barcode4j library which is an option within Jasper. The barcode appears fine on screen and then from my preview window I select save, choose the PDF type and then enter a filename with pdf extension. The file opens ok with PDF viewer on my mac and prints to a laser just fine.
There is a lot of code to look at by my project is at https://www.commander4j.com/ and you can download the source from there if it helps.
Are you using a barcode font by any chance ?
|Example barcodes in PDF||5.07 KB|