Example usage for Java org.apache.pdfbox.pdmodel PDPageContentStream fields, constructors, methods, implement or subclass
The text is from its open source code.
PDPageContentStream(PDDocument document, PDPage sourcePage) Create a new PDPage content stream. | |
PDPageContentStream(PDDocument doc, PDAppearanceStream appearance) Create a new appearance stream. | |
PDPageContentStream(PDDocument document, PDPage sourcePage, AppendMode appendContent, boolean compress) Create a new PDPage content stream. | |
PDPageContentStream(PDDocument document, PDPage sourcePage, AppendMode appendContent, boolean compress, boolean resetContext) Create a new PDPage content stream. | |
PDPageContentStream(PDDocument doc, PDAppearanceStream appearance, OutputStream outputStream) Create a new appearance stream. |
void | drawLine(float xStart, float yStart, float xEnd, float yEnd) Draw a line on the page using the current stroking color and the current line width. |
void | drawString(String text) This will draw a string at the current location on the screen. |
void | drawXObject(PDXObject xobject, float x, float y, float width, float height) Draw an xobject(form or image) at the x,y coordinates and a certain width and height. |
void | fillRect(float x, float y, float width, float height) Fill a rectangle on the page using the current non stroking color. |
void | moveTextPositionByAmount(float tx, float ty) The Td operator. |
void | setNonStrokingColor(float[] components) Set the color components of current non-stroking color space. |
void | setStrokingColor(float[] components) Set the color components of current stroking color space. |
void | setStrokingColor(int g) Set the stroking color in the DeviceGray color space. |
void | setTextMatrix(AffineTransform matrix) The Tm operator. |