Hi,

 

I am trying to dynamically populate a barcode field
generated using acrobat X1 pro, with itext acrofields. But barcode is coming
up as plain text. Any idea how I can get around this issue?  Code is as
mentioned below.

 

using (var stamper = new PdfStamper(reader, ms))

                           
{

                               
AcroFields
pdfFormFields = stamper.AcroFields;

                               


                                pdfFormFields.SetField("Barcode1",
vardata.EncounterId);

                               


                                stamper.Writer.CloseStream
= false;

                               
stamper.Writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_5);

                               
stamper.Close();

                           
}

 

We are using itextsharp.dll,
v5.1.2.0 
version

 

Please let me know.

 

Thanks

                                          
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to