41
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 271 of 553
OutputPageHeight
Description
Sets or returns the output page height.
NOTE:
You must set OutputPageHeight before calling OpenOutputFile.
Return type
Float
Description
The height in PDF Units.
Syntax
value = object.
OutputPageHeight
= value
The OutputPageHeight property has these parts:
Part
Value Type
Description
Object
An expression of the Toolkit object.
Value
Float
The height in PDF Units. (Default is 792)
Remarks
OutputPageHeight can only be used in conjunction with methods like PrintText,DrawTo and PrintLogo ,
which generate a new PDF page in the output document.
Example
'OutputPageHeight Example
Set TK = CreateObject("APToolkit.Object")
'Set page dimensions (must go before OpenOutputFile)
strPageWidth = 8.5 * 72 '72 = 1"
strPageHeight = 14 * 72 '72 = 1"
TK.OutputPageWidth = strPageWidth
TK.OutputPageHeight = strPageHeight
r = TK.OpenOutputFile("OutputPageHeight.pdf")
TK.SetFont "Helvetica", 20, 0
TK.PrintText 30, 740, "Hello World", 0
TK.CloseOutputFile