org.pdfbox.util
Class PDFText2HTML

java.lang.Object
  extended byorg.pdfbox.util.PDFStreamEngine
      extended byorg.pdfbox.util.PDFTextStripper
          extended byorg.pdfbox.util.PDFText2HTML

public class PDFText2HTML
extends PDFTextStripper

Wrap stripped text in simple HTML, trying to form HTML paragraphs. Paragraphs broken by pages, columns, or figures are not mended.

Version:
$Revision: 1.1 $
Author:
jjb - http://www.johnjbarton.com

Constructor Summary
PDFText2HTML()
          Constructor.
 
Method Summary
 void endDocument(PDDocument pdf)
           
 boolean isSuppressParagraphs()
           
 void setSuppressParagraphs(boolean shouldSuppressParagraphs)
           
 
Methods inherited from class org.pdfbox.util.PDFTextStripper
getEndBookmark, getEndPage, getLineSeparator, getPageSeparator, getStartBookmark, getStartPage, getText, getText, getText, getWordSeparator, setEndBookmark, setEndPage, setFirstPageRotation, setGetFirstPageRotationFromThis, setLineSeparator, setPageSeparator, setShouldSeparateByBeads, setSortByPosition, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, shouldSeparateByBeads, shouldSortByPosition, shouldSuppressDuplicateOverlappingText, writeText, writeText
 
Methods inherited from class org.pdfbox.util.PDFStreamEngine
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processStream, processSubStream, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFText2HTML

public PDFText2HTML()
             throws IOException
Constructor.

Throws:
IOException - If there is an error during initialization.
Method Detail

endDocument

public void endDocument(PDDocument pdf)
                 throws IOException
Parameters:
pdf - The PDF document that is being processed.
Throws:
IOException - If an IO error occurs.
See Also:
PDFTextStripper#endDocument( PDDocument )

isSuppressParagraphs

public boolean isSuppressParagraphs()
Returns:
Returns the suppressParagraphs.

setSuppressParagraphs

public void setSuppressParagraphs(boolean shouldSuppressParagraphs)
Parameters:
shouldSuppressParagraphs - The suppressParagraphs to set.


Copyright null EGIZ - E-Government Innovation Center. All Rights Reserved.