Description
Represents an area of formatted text.
For a list of all members defined in this module, see FormattedTextArea members.
Object Model
Remarks
This class can be used to place formatted text onto an area of the page.
Interfaces
| Implemented Interface | Description |
| Object | |
Example
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% ' The METADATA tag above was added to import the constants (i.e. DPDF_Font_Helvetica). Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) ' Create a Page and add it to the document Dim MyPage Set MyPage = MyDocument.AddPage() ' Create the text and the Formatted text area Dim MyFormattedText MyFormattedText= "<p>Formatted text area provide rich formatting support for " + _ "text that appears in the document. You have complete control over 8 paragraph " + _ "properties: spacing before, spacing after, first line indentation, left indentation," + _ " right indentation, alignment, allowing orphan lines, and white space preservation; " + _ "6 font properties: <font face='Times'>font face, </font><font " + _ "pointSize='6'>font size, </font><font color='FF0000'>color, " + _ "</font><b>bold, </b><i>italic and </i><u>" + _ "underline</u>; and 2 line properties: leading, and leading type. Text can " + _ "also be rotated.</p>" Dim MyFormattedTextArea Set MyFormattedTextArea = MyPage.AddFormattedTextArea( MyFormattedText, 0, 0, 256, 400, DPDF_FontFamily_Helvetica, 12, False ) ' Draw the PDF MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %>
|
See Also
FormattedTextArea Members
© Copyright 2007, ceTe Software