Class AbstractBankPDFPageFirst
java.lang.Object
org.apache.pdfbox.contentstream.PDFStreamEngine
org.apache.pdfbox.text.PDFTextStripper
org.apache.pdfbox.text.PDFTextStripperByArea
de.frankmuenster.mahoe.pdfextractor.AbstractBankPDFPage
de.frankmuenster.mahoe.pdfextractor.AbstractBankPDFPageFirst
- Direct Known Subclasses:
SantanderPdfPageFirst,TargoBankPdfPageFirst
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
-
Field Summary
Fields inherited from class de.frankmuenster.mahoe.pdfextractor.AbstractBankPDFPage
BESCHREIBUNG, BETRAG, BUCHUNGS_DATUM, CM_TO_PDF, FAELLIG_BETRAG, FAELLIG_BIC, FAELLIG_DATUM, FAELLIG_IBAN, FREMDW_BETRAG, FREMDWAEHRUNG, KARTEN_INHABER, KARTEN_KONTO, KAUF_DATUM, KURS, RECHNUNGS_DATUM, SALDOFields inherited from class org.apache.pdfbox.text.PDFTextStripper
charactersByArticle, document, LINE_SEPARATOR, output -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandard constructor call super class. -
Method Summary
Modifier and TypeMethodDescriptionprotected floatcomputeFontHeight(org.apache.pdfbox.pdmodel.font.PDFont arg0) Defines the regions in a Map.protected voidshowGlyph(org.apache.pdfbox.util.Matrix arg0, org.apache.pdfbox.pdmodel.font.PDFont arg1, int arg2, org.apache.pdfbox.util.Vector arg3) Methods inherited from class de.frankmuenster.mahoe.pdfextractor.AbstractBankPDFPage
defineRegions, getRectangleFrom, getXPos, setRegion, writeStringMethods inherited from class org.apache.pdfbox.text.PDFTextStripperByArea
addRegion, extractRegions, getRegions, getTextForRegion, processTextPosition, removeRegion, setShouldSeparateByBeads, writePageMethods 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, writeWordSeparatorMethods 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, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
-
Constructor Details
-
AbstractBankPDFPageFirst
Standard constructor call super class.- Throws:
IOException
-
-
Method Details
-
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 theMap:
AbstractBankPDFPage.KARTEN_KONTOAbstractBankPDFPage.KARTEN_INHABERAbstractBankPDFPage.RECHNUNGS_DATUMAbstractBankPDFPage.SALDOAbstractBankPDFPage.FAELLIG_BETRAGAbstractBankPDFPage.FAELLIG_DATUMAbstractBankPDFPage.FAELLIG_IBANAbstractBankPDFPage.FAELLIG_BIC
- Returns:
- a
Mapwith the regions defined
-
showGlyph
protected void showGlyph(org.apache.pdfbox.util.Matrix arg0, org.apache.pdfbox.pdmodel.font.PDFont arg1, int arg2, org.apache.pdfbox.util.Vector arg3) throws IOException - Overrides:
showGlyphin classorg.apache.pdfbox.contentstream.PDFStreamEngine- Throws:
IOException
-
computeFontHeight
- Throws:
IOException
-