PdfTemplate question

View: New views
2 Messages — Rating Filter:   Alert me  

PdfTemplate question

by KrazySmile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone

If i use
st.SignatureAppearance.GetLayer(2)
to get the PdfTemplate and draw it myself, i have to really draw everything ?

i mean, for example, even if i set the
this._sap.Render = PdfSignatureAppearance.SignatureRender.NameAndDescription; (and other stuff in sap)
i still have to calculate and draw everything myself on the template?

drawing the template myself is good for very customized signature appearances.
But, for now,  i only want to customize the text showed, not the whole appearance.

Regards.

Re: PdfTemplate question

by KrazySmile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I figure it out reading the source code in "public PdfTemplate GetAppearance()"

Setting
this._sap.Layer2Text = "the text i want";
Set the text and it even fit it to the rectangle.

(correct me if im wrong)

Regards.


KrazySmile wrote:
Hello everyone

If i use
st.SignatureAppearance.GetLayer(2)
to get the PdfTemplate and draw it myself, i have to really draw everything ?

i mean, for example, even if i set the
this._sap.Render = PdfSignatureAppearance.SignatureRender.NameAndDescription; (and other stuff in sap)
i still have to calculate and draw everything myself on the template?

drawing the template myself is good for very customized signature appearances.
But, for now,  i only want to customize the text showed, not the whole appearance.

Regards.
LightInTheBox - Buy quality products at wholesale price