Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Text
ShowUnicodeTextParagraph

See Also
Collapse All

This method draws a text paragraph.

Syntax

HRESULT ShowUnicodeTextParagraph (
FLOAT x,
FLOAT y,
ParagraphAlign align,
FLOAT interval,
FLOAT marginLeft,
FLOAT marginTop,
FLOAT marginRight,
FLOAT marginBottom,
BSTR text
)
Parameters
x
X coordinate of the starting text location

y
Y coordinate of the starting text location

align
Text align within the paragraph

interval
Space (in pixels) between paragraph text lines. If it is negative ( < 0 ), then the default interval will be used.

marginLeft
The space from the left edge of the page to the text section (in pixels)

marginTop
The space from the top edge of the page to the text section (in pixels)

marginRight
The space from the right edge of the page to the text section (in pixels)

marginBottom
The space from the bottom edge of the page to the text section (in pixels)

text
Paragraph text to be displayed

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

The method will automatically split the paragraph text to the lines to fit the page bounds, align text lines as needed and add a new PDF page if the text does not fit to the rest of the current PDF page.

This method respects all text settings such as text direction, text font and font size, word spacing, character spacing and e.t.c.

See the ShowTextParagraph method for examples.

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots