Java Code Examples for com.lowagie.text.pdf.PdfNumber#intValue()

The following examples show how to use com.lowagie.text.pdf.PdfNumber#intValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ITextPdfArray.java    From dss with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public int getInt(int i) throws IOException {
	PdfNumber number = wrapped.getAsNumber(i);
	if (number != null) {
		return number.intValue();
	}
	return 0;
}
 
Example 2
Source File: PdfContentStreamProcessor.java    From gcs with Mozilla Public License 2.0 4 votes vote down vote up
@Override
public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList operands) {
	PdfNumber render = (PdfNumber) operands.get(0);
	processor.gs().renderMode = render.intValue();
}
 
Example 3
Source File: PdfContentStreamProcessor.java    From itext2 with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList operands) {
	PdfNumber render = (PdfNumber) operands.get(0);
	processor.gs().renderMode = render.intValue();
}