CreatePostScriptFunction(ReadOnlySpan, ReadOnlySpan, String) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates a PostScript calculator function.

public PdfPostScriptFunction CreatePostScriptFunction(ReadOnlySpan<double> domain, ReadOnlySpan<double> range, string program)

Parameters

domain
ReadOnlySpan<Double>

The inputs' ranges: a minimum and a maximum per input.

range
ReadOnlySpan<Double>

The outputs' ranges: a minimum and a maximum per output.

program
String

The program, in braces, such as { 1 exch sub }; it uses only the operators Table 42 lists.

Returns

PdfPostScriptFunction
The function: a new indirect stream << /FunctionType 4 /Domain [...] /Range [...] >> holding the program.

Remarks

ISO 32000-2 §7.10.5, Tables 41 and 42 (PDF 1.3). The program is compiled before the object is added. Records PDF 1.3. A mutation.