Class AbstractBankPDFPageFirst

  • Direct Known Subclasses:
    SantanderPdfPageFirst, TargoBankPdfPageFirst

    public abstract class AbstractBankPDFPageFirst
    extends AbstractBankPDFPage
    Defines a first pages PDF account sheet. It extends AbstractBankPDFPage to add regions for general account information like account number, owner and balance.
    Author:
    Frank Münster
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractBankPDFPageFirst()
      Standard constructor call super class.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected float computeFontHeight​(org.apache.pdfbox.pdmodel.font.PDFont arg0)  
      protected abstract java.util.Map<java.lang.String,​java.awt.Rectangle> defineFirstPageRegions()
      Defines the regions in a Map.
      protected void showGlyph​(org.apache.pdfbox.util.Matrix arg0, org.apache.pdfbox.pdmodel.font.PDFont arg1, int arg2, java.lang.String arg3, org.apache.pdfbox.util.Vector arg4)  
      • Methods inherited from class org.apache.pdfbox.text.PDFTextStripperByArea

        addRegion, extractRegions, getRegions, getTextForRegion, processTextPosition, removeRegion, setShouldSeparateByBeads, writePage
      • Methods inherited from class org.apache.pdfbox.text.PDFTextStripper

        endArticle, endDocument, endPage, getAddMoreFormatting, getArticleEnd, getArticleStart, getAverageCharTolerance, getCharactersByArticle, getCurrentPageNo, getDropThreshold, getEndBookmark, getEndPage, getIndentThreshold, getLineSeparator, getListItemPatterns, getOutput, getPageEnd, getPageStart, getParagraphEnd, getParagraphStart, getSeparateByBeads, getSortByPosition, getSpacingTolerance, getStartBookmark, getStartPage, getSuppressDuplicateOverlappingText, getText, getWordSeparator, matchPattern, processPage, processPages, setAddMoreFormatting, setArticleEnd, setArticleStart, setAverageCharTolerance, setDropThreshold, setEndBookmark, setEndPage, setIndentThreshold, setLineSeparator, setListItemPatterns, setPageEnd, setPageStart, setParagraphEnd, setParagraphStart, setSortByPosition, setSpacingTolerance, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, startArticle, startArticle, startDocument, startPage, writeCharacters, writeLineSeparator, writePageEnd, writePageStart, writeParagraphEnd, writeParagraphSeparator, writeParagraphStart, writeString, writeText, writeWordSeparator
      • Methods inherited from class org.apache.pdfbox.contentstream.PDFStreamEngine

        addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractBankPDFPageFirst

        protected AbstractBankPDFPageFirst()
                                    throws java.io.IOException
        Standard constructor call super class.
        Throws:
        java.io.IOException
    • Method Detail

      • defineFirstPageRegions

        protected abstract java.util.Map<java.lang.String,​java.awt.Rectangle> defineFirstPageRegions()
        Defines the regions in a Map. The region rectangle values must able be converted to PDF measures. Following key needs to be defined in the Map:
        • AbstractBankPDFPage.KARTEN_KONTO
        • AbstractBankPDFPage.KARTEN_INHABER
        • AbstractBankPDFPage.RECHNUNGS_DATUM
        • AbstractBankPDFPage.SALDO
        • AbstractBankPDFPage.FAELLIG_BETRAG
        • AbstractBankPDFPage.FAELLIG_DATUM
        • AbstractBankPDFPage.FAELLIG_IBAN
        • AbstractBankPDFPage.FAELLIG_BIC
        Returns:
        a Map with the regions defined
      • showGlyph

        protected void showGlyph​(org.apache.pdfbox.util.Matrix arg0,
                                 org.apache.pdfbox.pdmodel.font.PDFont arg1,
                                 int arg2,
                                 java.lang.String arg3,
                                 org.apache.pdfbox.util.Vector arg4)
                          throws java.io.IOException
        Overrides:
        showGlyph in class org.apache.pdfbox.contentstream.PDFStreamEngine
        Throws:
        java.io.IOException
      • computeFontHeight

        protected float computeFontHeight​(org.apache.pdfbox.pdmodel.font.PDFont arg0)
                                   throws java.io.IOException
        Throws:
        java.io.IOException