public class SignaturePlaceholderExtractor
extends org.apache.pdfbox.util.PDFStreamEngine
Modifier and Type | Field and Description |
---|---|
static int |
PLACEHOLDER_MATCH_MODE_LENIENT |
static int |
PLACEHOLDER_MATCH_MODE_MODERATE |
static int |
PLACEHOLDER_MATCH_MODE_STRICT |
static String |
QR_PLACEHOLDER_IDENTIFIER |
Modifier and Type | Method and Description |
---|---|
static SignaturePlaceholderData |
extract(InputStream inputStream,
String placeholderId,
int matchMode)
Search the document for placeholder images and possibly included
additional info.
Searches only for the first placeholder page after page from top. |
protected void |
processOperator(org.apache.pdfbox.util.PDFOperator operator,
List arguments) |
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, inspectFontEncoding, isForceParsing, processEncodedText, processOperator, processStream, processSubStream, processTextPosition, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setForceParsing, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix
public static final String QR_PLACEHOLDER_IDENTIFIER
public static final int PLACEHOLDER_MATCH_MODE_STRICT
public static final int PLACEHOLDER_MATCH_MODE_MODERATE
public static final int PLACEHOLDER_MATCH_MODE_LENIENT
public static SignaturePlaceholderData extract(InputStream inputStream, String placeholderId, int matchMode) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
inputStream
- PDFDocumentException
- if the document could not be read.at.gv.egiz.pdfas.common.exceptions.PlaceholderExtractionException
- if STRICT matching mode was requested and no suitable placeholder could be found.at.gv.egiz.pdfas.common.exceptions.PdfAsException
protected void processOperator(org.apache.pdfbox.util.PDFOperator operator, List arguments) throws IOException
processOperator
in class org.apache.pdfbox.util.PDFStreamEngine
IOException