PdfFunction Object

Overview

PdfFunction represents a PDF transformation function. This object was introduced in version 2.5 to compliment the PdfColorSpace object also introduced in version 2.5. For detailed information about AspPDF's support for functions, see Section 16.2 - PdfFunction Object of the user manual.

Member List

Properties


Inputs As Long (Read-only)
Returns the number of inputs for this function.

IsValid As Boolean (Read-only)

Returns the number of inputs for this function. Returns True if this function object is valid and complete, or False otherwise. If this property returns False, the verbal error describing the reason for it not being valid should be obtained from the ValidationError property. This property is useful for debugging purposes.

For more information, see Section 16.2.2 - PdfFunction Object Usage.


Outputs As Long (Read-only)
Returns the number of outputs for this function.

PostScript As String (Read/Write)

Specifies the PostScript code for the PostScript calculator function represented by this object. This propery can only be set on a PostScript calculator function object.

For more information, see Section 16.2.3 - Function Types, PostScript Calculator.


ValidationError As String (Read-only)

Returns the verbal reason for this object not being valid. This property should only be used if IsValid returns False. This property is useful for debugging purposes.

For more information, see Section 16.2.2 - PdfFunction Object Usage.

Methods


Sub AddFuncton(Function As PdfFunction)

Adds a subfunction specified by Function to the stitching function represented by this object. This method can only be called on an instance of the stitching function object.

For more information, see Section 16.2.3 - Function Types (Stitching).


Sub SetSampleData(Data As Variant)

Specifies the sample data for the sampled function represented by this object in the form of a Variant-packed array of numbers specified by Data. This method can only be called on an instance of the sampled function object.

For more information, see Section 16.2.3 - Function Types (Sampled). more information, see Section 16.2.3 - Function Types (Stitching).