Barcodes are not supported in Designer created forms.

Paulo

----- Original Message ----- 
From: "Trank" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 23, 2007 6:58 PM
Subject: [iText-questions] Itext and barcode


>
> Hi, I have a problem, i must fill the fileld of a pdf document using itext
>
> I have no problem with normal field butif I try to change the value of a
> barcode, when I open the pdf I will not see the barcode but only the value 
> i
> have insert, when I use the "Hiligth Field" option i will see the barcode,
> and if I try to print the pdf i will not see the barcode but only the 
> value
> i have insert via Java.
>
> The code I use is this:
>
> {
> PdfReader reader = new PdfReader("c:\\empty.pdf");
>         int n = reader.getNumberOfPages();
>         PdfStamper stamp = new PdfStamper(reader,new
> FileOutputStream("c:\\filled.pdf"));
>         AcroFields form = stamp.getAcroFields();
>         form.setField("name",name);
>         form.setField("birthCitty",city);
>         form.setField("bitrhDate", date);
>         form.setField("city", "Roma");
>         form.setField("address", "via di pietralata");
>         form.setField("postalCode", "00100");
>         form.setField("mail", "[EMAIL PROTECTED]");
>         form.setField("telephone", "0258966");
>         form.setField("mobile", "3245343");
>         form.setField("contogioco", "123654789");{
> PdfReader reader = new PdfReader("c:\\contratto.pdf");
>         int n = reader.getNumberOfPages();
>         // filling in the form
>         PdfStamper stamp = new PdfStamper(reader,new
> FileOutputStream("c:\\compilato.pdf"));
>         AcroFields form = stamp.getAcroFields();
>         form.setField("nome", "Ambnrosini Pier Luigi");
>         form.setField("luogonascita","Roma");
>         form.setField("datanascita", "10-11-1982");
>         form.setField("cittaresdenza", "Roma");
>         form.setField("indirizzo", "via di pietralata");
>         form.setField("cap", "00100");
>         form.setField("codfisc", "1233441535");
>         form.setField("mail", "[EMAIL PROTECTED]");
>         form.setField("telefono", "0258966");
>         form.setField("cellulare", "3245343");
>         form.setField("CodiceabarreCode3of91", "987654321098");  //barcode
> 3of91
>         stamp.close();
>         reader.close();
> }
>
> Tanks.
> Pier Luigi Ambrosini


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to