33
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 244 of 553
HeightPrinted
Description
Returns the height of printed text in PDF Units.
Return type
Float
Description
The height of the printed text in PDF Units.
Syntax
value = object.
HeightPrinted
The HeightPrinted property has these required parts:
Part
Description
Object
An expression of the Toolkit object.
Example
'HeightPrinted Example
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("HeightPrinted.pdf")
strText = "This is multiline text that is printed on the page"
TK.PrintMultilineText "Helvetica", -20, 30, 650, 50, 80, strText, 0, 0
strTextHeight = TK.HeightPrinted
msgbox strTextHeight
TK.SetFont "Helvetica", 20, 0
TK.PrintText 30, 740, "Hello World", 0
strTextHeight = TK.HeightPrinted
msgbox strTextHeight
TK.CloseOutputFile
Set TK = Nothing