Class FunctionType4

java.lang.Object
com.sun.pdfview.function.PDFFunction
com.sun.pdfview.function.FunctionType4

public class FunctionType4 extends PDFFunction

A PostScript function is represented as a stream containing code written in a small subset of the PostScript language. This reference is taken from the (3200-1:2008:7.10.5)

http://www.adobe.com/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf

  • Constructor Details

    • FunctionType4

      protected FunctionType4()
      Creates a new instance of FunctionType4
  • Method Details

    • parse

      protected void parse(PDFObject obj) throws IOException
      Read the function information from a PDF Object
      Specified by:
      parse in class PDFFunction
      Throws:
      IOException
    • doFunction

      protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
      Map from m input values to n output values. The number of inputs m must be exactly one half the size of the domain. The number of outputs should match one half the size of the range.
      Specified by:
      doFunction in class PDFFunction
      Parameters:
      inputs - an array of m input values
      inputOffset - the offset into the inputs array to read from
      outputs - an array of size n which will be filled with the output values, or null to return a new array
      outputOffset - the offset into the output array to write to