Hi,
I think chris was talking about a text field (not a text object). The problem is that I need the text at design time too, because someone will have to create/design the pdf. However, in that design, I should be able to insert some flag I could update at run time. For instance, think on a contract. Somewhere between the text you will have to insert at runtime specific data. At the same time you shouldn´t let empty spaces between the new data and the text... If you insert a text field between text object, than you will have a big problem replacing the fields (to enlarge or shrink). But... if you use a text object... if you could replace some previous create flag (with the same dimension as the input filed), the text should enlarge or shrink properly. In a previous version (accelio version), this was very easy to accomplish. Text was really text, and it was formatted with spaces and stuff like that.
But now, in a text object, text (when it as spaces, or differente fonts) is a set of xml objects.... so it is more difficult to find and replace something.
I realize that it is possible to change the text of text objects like this:
this.resolveNode("caption.value.#text").value (a caption or simple text is the same)
However, with complex text (text object with paragraphs, different fonts, etc...), we don´t have a value/text xml object but a exData/body/p/... object.. sight!
My question is: How can I get the text of each object ("p" object in xml)?
Everytime I make something like this:
alert(test.resolveNode("value.#exData").value)
or
teste.resolveNode("value.exData.body").value)
or
teste.resolveNode("value.exData.body.#p").value)
or
teste.resolveNode("value.exData.body.p").value)
or
teste.resolveNode("value.exData.body.p(3)").value)
I never get nothing...
I think the resolution of this functionality is important because I´m sure there is a lot of forms of this kind that pdf should contemplate.
Thank you.
My test object (just the "value" node):
Identification of ________,
Identification of ________,
Created the contrat with these general clauses: