
org.openpdf.renderer.function.postscript.operation.Gt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openpdf-renderer Show documentation
Show all versions of openpdf-renderer Show documentation
PDF renderer implementation supporting the subset of PDF 1.4 specification.
The newest version!
package org.openpdf.renderer.function.postscript.operation;
import java.util.Stack;
final class Gt implements PostScriptOperation {
@Override
/**
* num1 num2 gt bool
*
* pops two objects from the operand stack and pushes true
* if the first operand is greater than the second, or
* false otherwise. If both operands are numbers, gt compares
* their mathematical values. If both operands are strings,
* gt compares them element by element, treating the elements
* as integers in the range 0 to 255, to determine whether
* the first string is lexically greater than the second.
* If the operands are of other types or one is a string
* and the other is a number, a typecheck error occurs.
*
* errors: invalidaccess, stackunderflow, typecheck
*/
public void eval(Stack
© 2015 - 2025 Weber Informatics LLC | Privacy Policy