But how do you get the contents of your PDF file into a java.awt.Image ?
I suspect that it might be doubly difficult to get barcodes out of PDF files
since there are at least three intrinsically different ways they could be
encoded therein (as text in a barcode font, as raw graphics instructions, or as
embedded images). Of course, the OP may know something about the PDF files
that would narrow those possibilities.
Maybe the thing to do would be to use some PDF renderer (probably not written
in Java) to generate TIFF, or whatever, graphics files, and then use an
off-the-shelf barcode reader package such as the one you mention to read that.
Alternatively, the images might be embedded in the PDF in a way that the data
could be extracted more directly. It all depends on the PDF and how it is