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.NET's support for functions, see Section 16.2 - PdfFunction Object of the user manual.

Member List

Properties


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

bool IsValid (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.


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

string PostScript (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.


string ValidationError (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


void AddFuncton(PdfFunction Function)

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).


void SetSampleData(object [] Data)

Specifies the sample data for the sampled function represented by this object in the form of an object 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).