org.pdfbox.util
Class PDFOperator
java.lang.Object
org.pdfbox.util.PDFOperator
public class PDFOperator
extends java.lang.Object
This class represents an Operator in the content stream.
byte[] | getImageData() - This is the special case for the ID operator where there are just random
bytes inlined the stream.
|
ImageParameters | getImageParameters() - This will get the image parameters, this is only valid for BI operators.
|
String | getOperation() - This will get the operation that this operator represents.
|
static PDFOperator | getOperator(String operator) - This is used to create/cache operators in the system.
|
void | setImageData(byte[] imageDataArray) - This will set the image data, this is only used for the ID operator.
|
void | setImageParameters(ImageParameters params) - This will set the image parameters, this is only valid for BI operators.
|
String | toString() - This will print a string rep of this class.
|
getImageData
public byte[] getImageData()
This is the special case for the ID operator where there are just random
bytes inlined the stream.
- Value of property imageData.
getImageParameters
public ImageParameters getImageParameters()
This will get the image parameters, this is only valid for BI operators.
getOperation
public String getOperation()
This will get the operation that this operator represents.
- The string representation of the operation.
getOperator
public static PDFOperator getOperator(String operator)
This is used to create/cache operators in the system.
operator
- The operator for the system.
- The operator that matches the operator keyword.
setImageData
public void setImageData(byte[] imageDataArray)
This will set the image data, this is only used for the ID operator.
imageDataArray
- New value of property imageData.
setImageParameters
public void setImageParameters(ImageParameters params)
This will set the image parameters, this is only valid for BI operators.
params
- The image parameters.
toString
public String toString()
This will print a string rep of this class.
- A string rep of this class.