hi 1T3XT,
thanks..
i tried doing a compare using
pdfFieldText.trim().equalsIgnoreCase("BARCODE") but it does give me the same
values..
but i still need to do a :
(a) form1.setField("BARCODE", strData);
to make my barcodes to appear because:
(b) form1.setField(pdfFieldText, strData);
//where pdfFieldText --> String pdfFieldText = "BARCODE";
//where BARCODE is retrieved from the xml
i don't mind hard coding the "BARCODE"...i can just define a rule for our
PDFFileCreator that one of the fields in the source PDF file should have the
BARCODE but i'm just curious why (a) and (b) behaves differently.
- k
keesha wrote:
> 1. if i'm dynamically getting the pdf field names from our xml (we have an
> xml (...) i call this method: form1.setField(pdfFieldText, strData); the
> barcodes won't get printed
> 2. but if i hard coded the pdfFieldText's name as "BARCODE"... like:
> form1.setField("BARCODE", strData); instead of dynamically getting the
> pdf
> field name, that does the trick
> do you know why this is the case?
Compare pdfFieldText with "BARCODE" and you'll see that pdfFieldText
doesn't contain the String you thought it contained. You're reading
pdfFieldText from an XML file. Chances are your String is something like
this: "\n\t\tBARCODE\n" or " BARCODE".
--
View this message in context:
http://www.nabble.com/On-Barcodes-and-stamp.setFormFlattening%28false%29-and-BaseFont-tp23559841p23565342.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/