public class PdfFontExtractor
extends org.apache.pdfbox.text.PDFTextStripper
| Constructor and Description |
|---|
PdfFontExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static FVFont |
convertFont(org.apache.pdfbox.pdmodel.font.PDFont font,
FontVerter.FontFormat format) |
static FVFont |
convertType0FontToOpenType(org.apache.pdfbox.pdmodel.font.PDType0Font font) |
void |
extractFontsToDir(byte[] pdf,
String path) |
void |
extractFontsToDir(File pdf,
String path) |
void |
extractFontsToDir(org.apache.pdfbox.pdmodel.PDDocument pdf,
File path) |
void |
extractFontsToDir(org.apache.pdfbox.pdmodel.PDDocument pdf,
String path) |
List<FVFont> |
extractToFVFonts(org.apache.pdfbox.pdmodel.PDDocument pdf) |
List<org.apache.pdfbox.pdmodel.font.PDFont> |
extractToPDFBoxFonts(org.apache.pdfbox.pdmodel.PDDocument pdf) |
FontVerter.FontFormat |
getExtractFormat() |
static void |
main(String[] args) |
void |
processPage(org.apache.pdfbox.pdmodel.PDPage page) |
void |
setExtractFormat(FontVerter.FontFormat extractFormat) |
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 |
tryExtractPageFonts() |
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, 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, writeString, writeText, writeWordSeparatoraddOperator, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, 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, unsupportedOperatorpublic PdfFontExtractor()
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionpublic void extractFontsToDir(File pdf, String path) throws IOException
IOExceptionpublic void extractFontsToDir(byte[] pdf,
String path)
throws IOException
IOExceptionpublic void extractFontsToDir(org.apache.pdfbox.pdmodel.PDDocument pdf,
File path)
throws IOException
IOExceptionpublic void extractFontsToDir(org.apache.pdfbox.pdmodel.PDDocument pdf,
String path)
throws IOException
IOExceptionpublic List<FVFont> extractToFVFonts(org.apache.pdfbox.pdmodel.PDDocument pdf) throws IOException
IOExceptionpublic List<org.apache.pdfbox.pdmodel.font.PDFont> extractToPDFBoxFonts(org.apache.pdfbox.pdmodel.PDDocument pdf) throws IOException
IOExceptionpublic void processPage(org.apache.pdfbox.pdmodel.PDPage page)
throws IOException
processPage in class org.apache.pdfbox.text.PDFTextStripperIOExceptionprotected void tryExtractPageFonts()
public static FVFont convertFont(org.apache.pdfbox.pdmodel.font.PDFont font, FontVerter.FontFormat format) throws IOException
IOExceptionpublic static FVFont convertType0FontToOpenType(org.apache.pdfbox.pdmodel.font.PDType0Font font) throws IOException
IOExceptionpublic FontVerter.FontFormat getExtractFormat()
public void setExtractFormat(FontVerter.FontFormat extractFormat)
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.PDFStreamEngineIOExceptionCopyright © 2016. All rights reserved.