47
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 358 of 553
Text2PDF
Text2PDF is a subobject of the Toolkit object, which converts a specified text file or text stream to PDF.
Asingle Text2PDF subobject is associated with each control instance, which enables performance of
simple Text conversions straight to PDF.
This section includes the following:
•
Instantiating the Text2PDF Subobject.
•
Text2PDF Extra Parameters.
•
Method.
•
Properties.
Instantiating the Text2PDF Subobject
To instantiate the Text2PDF subobject, you must instantiate the Toolkit object first.
Set Toolkit = CreateObject("APToolkit.Object")
Set Text2PDF = Toolkit.Text2PDFObject
Text2PDF Extra Parameters
The Text2PDF subobject uses additional parameters and instructions for defining additional items or
inserting a page break. For additional information, refer to the following sections:
•
Input Stream Extras.
•
Inserting a Page Break.
Input Stream Extras
You can define additional items such as annotations in the Input Stream. These are defined on a line
by themselves.
Item
Description
.action o file.pdf
This will generate a link to open a specified PDF file.
.action program.exe
This will generate a launch link to a specified program (.exe).
.stream rawpdfstream
This will insert a specified PDF stream into the file.
.line+n
This will add n lines to the line counter. You can use this when
.stream changes the internal line counter.
.line=n
This sets the internal line counter to n. You can use this when .stream
changes the internal line counter.
.line-n
This will subtract n lines from the line counter. You can use this when