Bruno I can't make it working;

over = stamp.getOverContent(i);
over.concatCTM(1, 0, 0, 1, 50, 806);
Rectangle rect = code128.placeBarcode(over ,..)

places a barcode over the existing image.

But because the barcode goes over a dark area and
cannot be seen, I'm trying to draw a white rectangle
under it:

under = stamp.getUnderContent(i);
rect.setBorder(Rectangle.BOX);
rect.setGrayFill(1);
under.rectangle(rect);


But I don't see it.

Thanks.
Giuseppe.
 
--- bruno <[EMAIL PROTECTED]> ha scritto: 

> beppe costagliola wrote:
> 
> >I'm writing the bardoce onto an existing pdf with
> this
> >code:
> >
> >PdfStamper stamp = new PdfStamper(reader, new
> >FileOutputStream(TOPDF));
> >....
> >over = stamp.getOverContent(i);
> >....
> >Rectangle rect = code128.placeBarcode(under, null,
> >null);
> >
> >
> >Now how can I get the: 
> >PdfContentByte cb = writer.getDirectContentUnder();
> 
> >  
> >
> In PdfStamper, you need stamp.getUnderContent(i);
> (Yes, it's that simple ;-) )
> br,
> Bruno
> 
> 
> _______________________________________________
> iText-questions mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to