Hi,

I try to generate a pdf form with a barcode and precompleted field.

I can't have precompleted field and a barcode to a same form.

This is the code to generate form without barcodeĀ :

              ByteArrayOutputStream buf = new ByteArrayOutputStream(); 
                
                try
                {
                        
                        PdfReader reader = new PdfReader("pdfform.pdf");  // 
lire le canevas
                
                        PdfStamper stamp = new PdfStamper(reader, buf);
        
                        AcroFields form = stamp.getAcroFields();
                        
                        //Fill the form
                        Iterator iterator  =listeValeur.iterator();
                        while(iterator.hasNext())
                        {
                                CleCanevas cleCanevas = (CleCanevas) 
iterator.next();
                                form.setField(cleCanevas.getCle(), 
cleCanevas.getValeur());
                        }
                        
                        stamp.setFormFlattening(true);          
                        stamp.close();                  
                }       
                catch (Exception de)
                {
                        ...
                }
                
                return buf;

Can you help me to complete the code to generate a bar code?


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to