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

Glossary Item Box

説明: 出力ページの幅を設定または取得します。

注意: OutputPageWidth は OpenOutputFile を呼び出す前に設定する必要があります。

戻り値: 値の型 説明 & 設定
Float PDF の表示単位で指定された幅

構文: value = object.OutputPageWidth = value
引数: 引数 値の型 説明 & 設定
object N/A オブジェクトのインスタンスを設定します。
Value Float PDF の表示単位で指定された幅(デフォルトは 792)

備考: OutputPageWidth は出力ファイルに新規の PDF を生成する PrintTextDrawToPrintLogo などのメソッドとのみ併用できます。
例:
'OutputPageWidth Example
Set TK = CreateObject("APToolkit.Object")

'Set page dimensions (must go before OpenOutputFile)
strPageWidth = 11 * 72 '72 = 1"
strPageHeight = 8.5 * 72 '72 = 1"
TK.OutputPageWidth = strPageWidth
TK.OutputPageHeight = strPageHeight

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

TK.SetFont "Helvetica", 20, 0
TK.PrintText 30, 740, "Hello World", 0

TK.CloseOutputFile

Set TK = Nothing