activePDF Toolkit 2011 API リファレンス
ClipText
テクニカル リファレンス > Toolkit オブジェクト > Toolkit プロパティ > ClipText

Glossary Item Box

説明: PrintMultilineTextで指定したマルチライン テキスト フィールドに収まらないテキストを返します。
構文: value =object.ClipText
引数: 引数 値の型 説明 & 設定
object N/A オブジェクトのインスタンスを設定します。
setValue String マルチライン テキスト ボックスに埋め込むときに切り取られたテキスト
例:
'ClipText Example
Set TK = CreateObject("APToolkit.Object")

r = TK.OpenOutputFile("ClipText.pdf")

    'Make a large text string for the example.
    For i =
1 to500
strText = strText & "This is multiline text that is printed on the page. "
    Next
    strText = strText & vbcr

    'Print as much text as possible on the first page
    TK.PrintMultilineText "Helvetica"
, 12, 30, 732, 552, 702, strText, 3, 0

    'Check to see if all the text was printed
    'If not loop adding a new page with remaining text until all text is printed
    Do Until TK.ClipText = "" TK.NewPage
    TK.PrintMultilineText "Helvetica", 12, 30, 762, 552, 732, TK.ClipText, 0, 0
    Loop

TK.CloseOutputFile

Set TK =
Nothing