public class CustomGraphicsStreamEngine
extends org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
See PDFStreamEngine for further methods which may be overridden.
| Modifier | Constructor and Description |
|---|---|
protected |
CustomGraphicsStreamEngine(org.apache.pdfbox.pdmodel.PDPage page)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendRectangle(Point2D p0,
Point2D p1,
Point2D p2,
Point2D p3) |
void |
clip(int windingRule) |
void |
closePath() |
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
void |
drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage) |
void |
endPath() |
void |
fillAndStrokePath(int windingRule) |
void |
fillPath(int windingRule) |
Point2D |
getCurrentPoint() |
void |
lineTo(float x,
float y) |
static void |
main(String[] args) |
void |
moveTo(float x,
float y) |
void |
run()
Runs the engine on the current page.
|
void |
shadingFill(org.apache.pdfbox.cos.COSName shadingName) |
protected void |
showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int code,
String unicode,
org.apache.pdfbox.util.Vector displacement)
Overridden from PDFStreamEngine.
|
void |
showTextString(byte[] string)
Overridden from PDFStreamEngine.
|
void |
showTextStrings(org.apache.pdfbox.cos.COSArray array)
Overridden from PDFStreamEngine.
|
void |
strokePath() |
addOperator, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperatorprotected CustomGraphicsStreamEngine(org.apache.pdfbox.pdmodel.PDPage page)
page - PDF Pagepublic static void main(String[] args) throws IOException
IOExceptionpublic void run()
throws IOException
IOException - If there is an IO error while drawing the page.public void appendRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws IOException
appendRectangle in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage)
throws IOException
drawImage in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void clip(int windingRule)
throws IOException
clip in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void moveTo(float x,
float y)
throws IOException
moveTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void lineTo(float x,
float y)
throws IOException
lineTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
throws IOException
curveTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic Point2D getCurrentPoint() throws IOException
getCurrentPoint in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void closePath()
throws IOException
closePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void endPath()
throws IOException
endPath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void strokePath()
throws IOException
strokePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void fillPath(int windingRule)
throws IOException
fillPath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void fillAndStrokePath(int windingRule)
throws IOException
fillAndStrokePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void shadingFill(org.apache.pdfbox.cos.COSName shadingName)
throws IOException
shadingFill in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngineIOExceptionpublic void showTextString(byte[] string)
throws IOException
showTextString in class org.apache.pdfbox.contentstream.PDFStreamEngineIOExceptionpublic void showTextStrings(org.apache.pdfbox.cos.COSArray array)
throws IOException
showTextStrings in class org.apache.pdfbox.contentstream.PDFStreamEngineIOExceptionprotected void showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int code,
String unicode,
org.apache.pdfbox.util.Vector displacement)
throws IOException
showGlyph in class org.apache.pdfbox.contentstream.PDFStreamEngineIOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.