PdfPostScriptCalculatorFunction Class
A type 4 function (PDF 1.3), also called a PostScript calculator function, shall be represented as a stream containing code written in a small subset of the PostScript language.
public sealed class PdfPostScriptCalculatorFunction : PdfFunction
Public NotInheritable Class PdfPostScriptCalculatorFunction
Inherits PdfFunction
- Inheritance:
- System.ObjectPdfPostScriptCalculatorFunction
Constructors
PdfPostScriptCalculatorFunction()
Initializes a new instance of the PdfPostScriptCalculatorFunction class. The Domain and Range properties should be subsequently populated and the Operation property should be set.
Properties
FunctionType
Gets the PostScriptCalculator value.
public override PdfFunctionType FunctionType { get; }
Public Overrides ReadOnly Property FunctionType As PdfFunctionType
Property Value
The PostScriptCalculator value.
Overrides
Operation
Gets or sets the PostScript Calculator Expression operation written in a small subset of the PostScript language.
public PdfPostScriptCalculatorOperation Operation { get; set; }
Public Property Operation As PdfPostScriptCalculatorOperation
Property Value
The PostScript Calculator Expression operation written in a small subset of the PostScript language.
Exceptions
- System.ArgumentException
The PostScript Calculator operation must be an Expression.
The scanner has encountered program text that does not conform to the PostScript language syntax rules.
See Also
Inherited Properties
Domain | (Required) A collection of mPdfNumberRanges, where m shall be the number of input values. For each i from 0 to m − 1, Domain[i].First shall be less than or equal to Domain[i].Last, and the ith input value, x[i], shall lie in the interval Domain[i].First ≤ x[i] ≤ Domain[i].Last. Input values outside the declared domain shall be clipped to the nearest boundary value. (Inherited from PdfFunction) |
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |
Range | (Required for PdfSampledFunctions and PdfPostScriptCalculatorFunctions, optional otherwise) A collection of nPdfNumberRanges, where n shall be the number of output values. For each j from 0 to n − 1, Range[j].First shall be less than or equal to Range[j].Last, and the jth output value, y[j] , shall lie in the interval Range[j].First ≤ y[j] ≤ Range[j].Last. Output values outside the declared range shall be clipped to the nearest boundary value. If this entry is absent, no clipping shall be done. (Inherited from PdfFunction) |
Inherited Methods
Compile() | Compiles the PDF function described by this PdfFunction instance into executable code and produces a delegate that represents the PDF function. (Inherited from PdfFunction) |
Compile(System.Boolean) | Compiles the PDF function described by this PdfFunction instance into executable code and produces a delegate that represents the PDF function. (Inherited from PdfFunction) |