|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.util.PDFStreamEngine
org.pdfbox.pdfviewer.PageDrawer
This will paint a page in a PDF document to a graphics context.
Constructor Summary | |
PageDrawer()
Default constructor, loads properties from file. |
Method Summary | |
void |
drawPage(Graphics g,
PDPage p,
Dimension pageDimension)
This will draw the page to the requested context. |
protected void |
processOperator(PDFOperator operator,
List arguments)
This is used to handle an operation. |
protected void |
showCharacter(TextPosition text)
You should override this method if you want to perform an action when a string is being shown. |
Methods inherited from class org.pdfbox.util.PDFStreamEngine |
getColorSpaces, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, processOperator, processStream, processSubStream, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PageDrawer() throws IOException
IOException
- If there is an error loading properties from the file.Method Detail |
public void drawPage(Graphics g, PDPage p, Dimension pageDimension) throws IOException
g
- The graphics context to draw onto.p
- The page to draw.pageDimension
- The size of the page to draw.
IOException
- If there is an IO error while drawing the page.protected void showCharacter(TextPosition text)
showCharacter
in class PDFStreamEngine
text
- The string to display.protected void processOperator(PDFOperator operator, List arguments) throws IOException
processOperator
in class PDFStreamEngine
operator
- The operation to perform.arguments
- The list of arguments.
IOException
- If there is an error processing the operation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |