at.gv.egiz.pdfas.placeholder
Class SignaturePlaceholderExtractor

java.lang.Object
  extended by org.apache.pdfbox.util.PDFStreamEngine
      extended by at.gv.egiz.pdfas.placeholder.SignaturePlaceholderExtractor

public class SignaturePlaceholderExtractor
extends org.apache.pdfbox.util.PDFStreamEngine

Extract all relevant information from a placeholder image.

Author:
exthex

Method Summary
static SignaturePlaceholderData extract(InputStream inputStream, String placeholderId, int matchMode)
          Search the document for placeholder images and possibly included additional info.
protected  void processOperator(org.apache.pdfbox.util.PDFOperator operator, List arguments)
           
 
Methods inherited from class org.apache.pdfbox.util.PDFStreamEngine
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, processEncodedText, processOperator, processStream, processSubStream, processTextPosition, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extract

public static SignaturePlaceholderData extract(InputStream inputStream,
                                               String placeholderId,
                                               int matchMode)
                                        throws PDFDocumentException,
                                               PlaceholderExtractionException
Search the document for placeholder images and possibly included additional info.
Searches only for the first placeholder page after page from top.

Parameters:
inputStream -
Returns:
all available info from the first found placeholder.
Throws:
PDFDocumentException - if the document could not be read.
PlaceholderExtractionException - if STRICT matching mode was requested and no suitable placeholder could be found.

processOperator

protected void processOperator(org.apache.pdfbox.util.PDFOperator operator,
                               List arguments)
                        throws IOException
Overrides:
processOperator in class org.apache.pdfbox.util.PDFStreamEngine
Throws:
IOException


Copyright © 2006-2011. All Rights Reserved.