|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.util.PDFStreamEngine
org.apache.pdfbox.util.PDFMarkedContentExtractor
public class PDFMarkedContentExtractor
This is an stream engine to extract the marked content of a pdf.
Field Summary | |
---|---|
protected String |
outputEncoding
encoding that text will be written in (or null). |
Constructor Summary | |
---|---|
PDFMarkedContentExtractor()
Instantiate a new PDFTextStripper object. |
|
PDFMarkedContentExtractor(Properties props)
Instantiate a new PDFTextStripper object. |
|
PDFMarkedContentExtractor(String encoding)
Instantiate a new PDFTextStripper object. |
Method Summary | |
---|---|
void |
beginMarkedContentSequence(COSName tag,
COSDictionary properties)
|
void |
endMarkedContentSequence()
|
List<PDMarkedContent> |
getMarkedContents()
|
protected void |
processTextPosition(TextPosition text)
This will process a TextPosition object and add the text to the list of characters on a page. |
void |
xobject(PDXObject xobject)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String outputEncoding
Constructor Detail |
---|
public PDFMarkedContentExtractor() throws IOException
IOException
- If there is an error loading the properties.public PDFMarkedContentExtractor(Properties props) throws IOException
props
- The properties containing the mapping of operators to PDFOperator
classes.
IOException
- If there is an error reading the properties.public PDFMarkedContentExtractor(String encoding) throws IOException
encoding
- The encoding that the output will be written in.
IOException
- If there is an error reading the properties.Method Detail |
---|
public void beginMarkedContentSequence(COSName tag, COSDictionary properties)
public void endMarkedContentSequence()
public void xobject(PDXObject xobject)
protected void processTextPosition(TextPosition text)
processTextPosition
in class PDFStreamEngine
text
- The text to process.public List<PDMarkedContent> getMarkedContents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |