Bruno, 

I know the dimension of the final barcode and I also
know its position because I always write it on the
same place. I also have to add some text beside the
barcode and the white rectangle should actually be a
little larger than the barcode. 

this adds the barcode:

Barcode128 code128 = new Barcode128();
code128.setCode("NT75214690");
PdfTemplate tp128=
code128.createTemplateWithBarcode(over, null, null);
over.addTemplate(tp128, 50, 800);

but I cannot understand how I can write a write small
rectangle, say at position 50,800 that covers the main
pdf image to put the barcode and some text on it .

can you give me more help ?

thanks.  
giuseppe.
 
--- bruno <[EMAIL PROTECTED]> ha scritto: 

> beppe costagliola wrote:
> 
> >I will try to rewrite acorrding to your suggestion.
> >
> What if you use createTemplateWithBarcode or
> createImageWithBarcode ONLY to get the width?
> You can then discard the template or image,
> draw the rectangle (based on the dimensions of
> the template/image) and place the barcode.
> 
> Now that I have given it some more thought, that
> would probably be the most 'economic' way to
> solve this problem (filesize-wise).
> 
> Just experiment a little more...
> 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