PostScriptFunction
Overview
PostScriptFunction is a class in Aspose.PDF FOSS for Java.
Inherits from: PdfFunction.
Type 4 (PostScript Calculator) function (ISO 32000-1:2008, §7.10.5).
This class provides 6 methods for working with PostScriptFunction objects in Java programs.
Available methods include: PostScriptFunction, evaluate, getInputDimension, getOutputDimension, parse.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: inputDimension, outputDimension.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
inputDimension | int | Read | Returns the number of input values. |
outputDimension | int | Read | Returns the number of output values. |
Methods
| Signature | Description |
|---|---|
PostScriptFunction(dict: PdfDictionary, domain: double[], range: double[]) | Creates a PostScript function from a PDF stream dictionary. |
PostScriptFunction(domain: double[], range: double[], program: String) | Creates a PostScript function directly (for testing). |
evaluate(input: double[]) → double[] | |
getInputDimension() → int | Returns the number of input values. |
getOutputDimension() → int | Returns the number of output values. |
parse(obj: PdfBase, parser: PDFParser) → PdfFunction | Factory: parses a function from a PDF object (dictionary or stream). |