Op 14/04/2013 17:08, Geoffrey Moore schreef:
I did some testing and it appears that the add is not working for the
phrase and chunk objects are not working. It adds the first time, but
if I call it a 2nd or 3rd time it does not work. It only displays the
first text passed in. Below is the test code I used in VB.net
Diml_para1 AsNewParagraph(NewPhrase("Homer"))
Dimresp AsBoolean
resp = l_para1.Add(
NewPhrase("Homer2"))
Diml_Phrase AsNewPhrase(NewChunk("Chunk1"))
l_Phrase.Add(
NewChunk("Chunk2"))
l_document.Add(l_para1)
Your code sample is somewhat confusing.
You create l_para1 in the first line, and you add it to l_document in
the last line.
In-between, you create l_Phrase, but I don't see you adding it to
l_document anywhere.
That could explain why it's not added.
PS: are THE Geoffrey Moore? (The one from Crossing the Chasm?)
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
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