32
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 62 of 553
CloseOutputFile
Description
CloseOutputFile instructs Toolkit to close the currently open output file. If an input file is currently
open, Toolkit closes this file as well.
NOTE:
You should only use CloseOutputFile after you make all desired changes to the output file. Any
additional changes will require you to reopen the file.
Return type
None
Syntax
object.
CloseOutputFile
The CloseOutputFile method has this part:
Part
Description
Object
An expression of the Toolkit object.
Example
'CloseOutputFile Example
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("CloseOutputFile.pdf")
'Set the font for the text
TK.SetFont "Helvetica", 20, 0
'Stamp Text onto the page
TK.PrintText 30, 740, "Hello World", 0
'Close Output File we are done creating the PDF
TK.CloseOutputFile
Set TK = Nothing