How to get a custom property of a text item in emitter? [message #555593] |
Fri, 27 August 2010 09:37 |
Ivan Messages: 3 Registered: August 2010 |
Junior Member |
|
|
Hi,
I need to implement an editable text field in PDF with iText and BIRT 2.5.2.
Suppose that we creat a cell like following:
<cell id="5737">
<property name="colSpan">5</property>
<property name="rowSpan">1</property>
<property name="paddingLeft">15pt</property>
<property name="textAlign">left</property>
<property name="CUST_PROPERTY">left</property>
<text id="57371">
<property name="CUST_PROPERTY_2">left</property>
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<B>Content</B>]]></text-property >
</text>
</cell>
In BIRT 2.3.2, ITextArea has the Interface getContent(), but in 2.5.2, that remove the method, so my question is:
In Emitter method
protected void drawTextAt( ITextArea text, int x, int y, int width, int height, TextStyle textInfo )
How can I get custom defined propery "CUST_PROPERTY" or "CUST_PROPERTY_2" here?
Thanks,
|
|
|
Re: How to get a custom property of a text item in emitter? [message #555679 is a reply to message #555593] |
Fri, 27 August 2010 15:14 |
|
Ivan
Can you log a bugzilla entry for this?
Jason
On 8/27/2010 5:37 AM, Ivan wrote:
> Hi, I need to implement an editable text field in PDF with iText and
> BIRT 2.5.2.
>
> Suppose that we creat a cell like following:
>
> <cell id="5737">
> <property name="colSpan">5</property>
> <property name="rowSpan">1</property>
> <property name="paddingLeft">15pt</property>
> <property name="textAlign">left</property>
>
> <property name="CUST_PROPERTY">left</property>
>
> <text id="57371">
>
> <property name="CUST_PROPERTY_2">left</property>
>
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<B>Content</B>]]></text-property >
> </text>
> </cell>
>
> In BIRT 2.3.2, ITextArea has the Interface getContent(), but in 2.5.2,
> that remove the method, so my question is:
> In Emitter method
> protected void drawTextAt( ITextArea text, int x, int y, int width, int
> height, TextStyle textInfo )
> How can I get custom defined propery "CUST_PROPERTY" or
> "CUST_PROPERTY_2" here?
>
> Thanks,
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03369 seconds