Line Height / Line spacing

Line Height / Line spacing

Forum member · Feb 10, 2009
Hello, How can I set the line height or spacing for a TextArea or FormattedTextArea? I'm trying to match a PDF design created by a graphic designer and they specified a line height of 1.5 to create more whitespace between the lines of text. It's for dynamic paragraphs of text, so I can't use a manual solution (like one TextArea per line). I don't see any way to accomplish this, so hopefully I'm just missing something! Thanks!

Re: Line Height / Line spacing

Support · Feb 10, 2009
Hello, You can set the spacing between two lines by setting the Leading proeprty of the TextArea page element. In order to set the leading to the entire text of the FormattedTextArea you will have to use the FormattedTextAreaStyle object. Following is the sample code for this. Set MyFormattedTextArea = MyPage.AddFormattedTextArea( MyFormattedText, 0, 0, 256, 400, DPDF_FontFamily_Helvetica, 12, False ) MyFormattedTextArea.Style.Line.Leading = 12 MyFormattedTextArea.Style.Line.LeadingType = DPDF_LineLeadingType_Exactly Thanks, ceTe Software Support Team.

Re: Line Height / Line spacing

Forum member · Feb 10, 2009
That worked, thanks!