com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Operator

    • Constructor Summary

      Constructors 
      Constructor and Description
      Operator(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      For internal usage only!
    • Constructor Detail

      • Operator

        public Operator(int index,
                        com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
        For internal usage only!

        Constructor of Operators. Creates operator by command object and operator index.

        Parameters:
        index - Index of operator in operators list
        command - Command object of operator
    • Method Detail

      • getIndex

        public int getIndex()

        Get Operator index in page operators list.

        Returns:
        int value
      • setIndex

        public void setIndex(int value)

        Set Operator index in page operators list.

        Parameters:
        value - int value
      • getCommandName

        public String getCommandName()

        Gets operator name.

        Returns:
        String value
      • getParameters

        public ArrayList<com.aspose.pdf.engine.commondata.pagecontent.operators.commands.CommandParameter> getParameters()

        Gets array of operator parameters.

        Returns:
        ArrayList of CommandParameter value
      • getCommand

        public com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand getCommand()

        Gets command

        Returns:
        ICommand object
      • reset

        public void reset()
        For internal usage only
      • accept

        public abstract void accept(IOperatorSelector visitor)

        Accepts visitor IOperatorSelector which provides operators processing.

        Parameters:
        visitor - Visitor object
      • toString

        public String toString()

        Translates command and parameters into string representation.

        Overrides:
        toString in class Object
        Returns:
        Operator text
      • toString

        public static String toString(com.aspose.pdf.engine.data.IPdfPrimitive primitive)

        Returns text representation of Pdf primitive (string, array, dictionary etc.) according to PDF specification.

        Parameters:
        primitive - Primitive
        Returns:
        Text represetation of the primitive
      • isTextShowOperator

        public static boolean isTextShowOperator(Operator op)

        Determines if the operator is operator which responsible for text output (Tj, TJ, etc)

        Parameters:
        op - Operator object
        Returns:
        True if this is text output operator