GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfPostScriptCalculatorFunction Class

    Namespace:
    GemBox.Pdf.Functions
    Assembly:
    GemBox.Pdf.dll

    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.

    • C#
    • VB.NET
    public sealed class PdfPostScriptCalculatorFunction : PdfFunction
    Public NotInheritable Class PdfPostScriptCalculatorFunction
        Inherits PdfFunction
    Inheritance:
    System.Object
    PdfObject
    PdfFunction
    PdfPostScriptCalculatorFunction

    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.

    • C#
    • VB.NET
    public PdfPostScriptCalculatorFunction()
    Public Sub New

    Properties

    FunctionType

    Gets the PostScriptCalculator value.

    • C#
    • VB.NET
    public override PdfFunctionType FunctionType { get; }
    Public Overrides ReadOnly Property FunctionType As PdfFunctionType
    Property Value
    PdfFunctionType

    The PostScriptCalculator value.

    Overrides
    PdfFunction.FunctionType

    Operation

    Gets or sets the PostScript Calculator Expression operation written in a small subset of the PostScript language.

    • C#
    • VB.NET
    public PdfPostScriptCalculatorOperation Operation { get; set; }
    Public Property Operation As PdfPostScriptCalculatorOperation
    Property Value
    PdfPostScriptCalculatorOperation

    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.

    InvalidPdfPostScriptCalculatorOperationException

    The scanner has encountered program text that does not conform to the PostScript language syntax rules.

    See Also
    PDF Specification ISO 32000-1:2008, section '7.10.5 Type 4 (PostScript Calculator) Functions'

    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)

    Extension Methods

    PdfObjectExtensions.GetDictionary(PdfObject)
    PdfObjectExtensions.GetOrAddDictionary(PdfObject)
    PdfObjectExtensions.GetArray(PdfObject)

    See Also

    PDF Specification ISO 32000-1:2008, section '7.10.5 Type 4 (PostScript Calculator) Functions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.