public class GetCharLocationAndSize
extends org.apache.pdfbox.text.PDFTextStripper
Modifier and Type | Field and Description |
---|---|
protected List<com.frojasg1.libpdf.api.GlyphWrapper> |
_listOfGlyphs |
Constructor and Description |
---|
GetCharLocationAndSize() |
Modifier and Type | Method and Description |
---|---|
protected void |
addGlyph(com.frojasg1.libpdf.api.GlyphWrapper glyphWrapper) |
protected com.frojasg1.libpdf.api.GlyphWrapper |
createGlyphWrapper(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int[] codes,
String unicode,
org.apache.pdfbox.util.Vector displacement) |
protected com.frojasg1.libpdf.api.GlyphWrapper |
createGlyphWrapper(org.apache.pdfbox.text.TextPosition text) |
protected Rectangle |
getBounds(org.apache.pdfbox.text.TextPosition text) |
List<com.frojasg1.libpdf.api.GlyphWrapper> |
getGlyphList() |
protected int |
getPageHeight() |
protected int |
getWidth(int[] codes,
org.apache.pdfbox.pdmodel.font.PDFont font) |
static void |
main(String[] args) |
protected void |
showGlyph(org.apache.pdfbox.util.Matrix arg0,
org.apache.pdfbox.pdmodel.font.PDFont arg1,
int arg2,
String arg3,
org.apache.pdfbox.util.Vector arg4) |
protected void |
writeString(String string,
List<org.apache.pdfbox.text.TextPosition> textPositions)
Override the default functionality of PDFTextStripper.writeString()
|
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, processTextPosition, setAddMoreFormatting, setArticleEnd, setArticleStart, setAverageCharTolerance, setDropThreshold, setEndBookmark, setEndPage, setIndentThreshold, setLineSeparator, setListItemPatterns, setPageEnd, setPageStart, setParagraphEnd, setParagraphStart, setShouldSeparateByBeads, setSortByPosition, setSpacingTolerance, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, startArticle, startArticle, startDocument, startPage, writeCharacters, writeLineSeparator, writePage, writePageEnd, writePageStart, writeParagraphEnd, writeParagraphSeparator, writeParagraphStart, writeString, writeText, writeWordSeparator
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, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
protected List<com.frojasg1.libpdf.api.GlyphWrapper> _listOfGlyphs
public GetCharLocationAndSize() throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
- If there is an error parsing the document.protected void addGlyph(com.frojasg1.libpdf.api.GlyphWrapper glyphWrapper)
public List<com.frojasg1.libpdf.api.GlyphWrapper> getGlyphList()
protected int getWidth(int[] codes, org.apache.pdfbox.pdmodel.font.PDFont font) throws IOException
IOException
protected com.frojasg1.libpdf.api.GlyphWrapper createGlyphWrapper(org.apache.pdfbox.util.Matrix textRenderingMatrix, org.apache.pdfbox.pdmodel.font.PDFont font, int[] codes, String unicode, org.apache.pdfbox.util.Vector displacement) throws IOException
IOException
protected com.frojasg1.libpdf.api.GlyphWrapper createGlyphWrapper(org.apache.pdfbox.text.TextPosition text) throws IOException
IOException
protected int getPageHeight()
protected Rectangle getBounds(org.apache.pdfbox.text.TextPosition text)
protected void writeString(String string, List<org.apache.pdfbox.text.TextPosition> textPositions) throws IOException
writeString
in class org.apache.pdfbox.text.PDFTextStripper
IOException
protected void showGlyph(org.apache.pdfbox.util.Matrix arg0, org.apache.pdfbox.pdmodel.font.PDFont arg1, int arg2, String arg3, org.apache.pdfbox.util.Vector arg4) throws IOException
showGlyph
in class org.apache.pdfbox.contentstream.PDFStreamEngine
IOException
Copyright © 2020 Fran Rojas. All rights reserved.