beppe costagliola wrote: >But because the barcode goes over a dark area > Oops. I know my answer was too simple, but I didn't know why. When you do getUnderContent, everything you write to this layer goes UNDER the dark area too.
Let's take a step back and rewrite the code so that it looks somewhat better. I don't like the concatCTM trick you are pulling to position the barcode. It makes the code too complex and hard to debug. Why don't you create a PdfTemplate. Add a while rectangle and the barcode to this PdfTemplate and wrap the template in an Image object. Then put the Image object at on the dark area and you are done. br, Bruno _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
