public class PageContentStreamOptimized extends Object
| Constructor and Description |
|---|
PageContentStreamOptimized(org.apache.pdfbox.pdmodel.PDPageContentStream pageContentStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRect(float x,
float y,
float width,
float height) |
void |
beginText() |
void |
close() |
void |
drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject image,
float x,
float y,
float width,
float height) |
void |
endText() |
void |
fill() |
void |
lineTo(float x,
float y) |
void |
moveTo(float x,
float y) |
void |
newLineAt(float tx,
float ty) |
void |
setFont(org.apache.pdfbox.pdmodel.font.PDFont font,
float fontSize) |
void |
setLineCapStyle(int lineCapStyle) |
void |
setLineDashPattern(float[] pattern,
float phase) |
void |
setLineWidth(float lineWidth) |
void |
setNonStrokingColor(Color color) |
void |
setRotated(boolean rotated) |
void |
setStrokingColor(Color color) |
void |
showText(String text) |
void |
stroke() |
public PageContentStreamOptimized(org.apache.pdfbox.pdmodel.PDPageContentStream pageContentStream)
public void setRotated(boolean rotated)
throws IOException
IOExceptionpublic void beginText()
throws IOException
IOExceptionpublic void endText()
throws IOException
IOExceptionpublic void setFont(org.apache.pdfbox.pdmodel.font.PDFont font,
float fontSize)
throws IOException
IOExceptionpublic void showText(String text) throws IOException
IOExceptionpublic void newLineAt(float tx,
float ty)
throws IOException
IOExceptionpublic void drawImage(org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject image,
float x,
float y,
float width,
float height)
throws IOException
IOExceptionpublic void setStrokingColor(Color color) throws IOException
IOExceptionpublic void setNonStrokingColor(Color color) throws IOException
IOExceptionpublic void addRect(float x,
float y,
float width,
float height)
throws IOException
IOExceptionpublic void moveTo(float x,
float y)
throws IOException
IOExceptionpublic void lineTo(float x,
float y)
throws IOException
IOExceptionpublic void stroke()
throws IOException
IOExceptionpublic void fill()
throws IOException
IOExceptionpublic void setLineWidth(float lineWidth)
throws IOException
IOExceptionpublic void setLineCapStyle(int lineCapStyle)
throws IOException
IOExceptionpublic void setLineDashPattern(float[] pattern,
float phase)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.