public class PDFBuffer
extends java.lang.Object
Constructor and Description |
---|
PDFBuffer() |
Modifier and Type | Method and Description |
---|---|
PDFBuffer |
append(byte[] theBytes)
Appends an arbitrary byte array.
|
PDFBuffer |
append(byte[] theBytes,
int anOffset,
int aLength)
Appends an arbitrary byte array with the given offset and length.
|
PDFBuffer |
append(char aChar)
Adds a character to the pdf buffer.
|
PDFBuffer |
append(double aDouble)
Adds a double and newline to the pdf buffer.
|
PDFBuffer |
append(int anInt)
Adds an int to the pdf buffer.
|
PDFBuffer |
append(PDFBuffer aBuffer)
Appends another buffer.
|
PDFBuffer |
append(RMColor aColor)
Writes a color.
|
PDFBuffer |
append(RMRect aRect)
Writes a rect to the pdf buffer.
|
PDFBuffer |
append(java.lang.String aString)
Adds a string to the pdf buffer.
|
PDFBuffer |
appendln()
Adds a newline to the pdf buffer.
|
PDFBuffer |
appendln(java.lang.String aString)
Adds a string and newline to the pdf buffer.
|
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Writes a curveto operator.
|
int |
length()
Returns the current length of the buffer.
|
void |
lineTo(float x,
float y)
Writes a lineto operator.
|
void |
moveTo(float x,
float y)
Writes a moveto operator.
|
void |
printPDFString(java.lang.String aString)
Adds a string object ( a string enclosed in parentheses ) to the buffer.
|
void |
quadTo(float lastX,
float lastY,
float x1,
float y1,
float x2,
float y2)
Writes a quadto operator.
|
byte[] |
toByteArray()
Returns the buffer as a byte array.
|
void |
transform(double a,
double b,
double c,
double d,
double tx,
double ty)
Writes a transform to pdf buffer.
|
void |
transform(RMTransform aTransform)
Writes a transform to pdf buffer.
|
void |
writePath(java.awt.Shape aShape)
Writes a given path to PDF file.
|
public int length()
public PDFBuffer append(char aChar)
public PDFBuffer append(java.lang.String aString)
public PDFBuffer append(int anInt)
public PDFBuffer append(double aDouble)
public PDFBuffer append(byte[] theBytes)
public PDFBuffer append(byte[] theBytes, int anOffset, int aLength)
public PDFBuffer appendln()
public PDFBuffer appendln(java.lang.String aString)
public void printPDFString(java.lang.String aString)
public void transform(RMTransform aTransform)
public void transform(double a, double b, double c, double d, double tx, double ty)
public void writePath(java.awt.Shape aShape)
public void moveTo(float x, float y)
public void lineTo(float x, float y)
public void quadTo(float lastX, float lastY, float x1, float y1, float x2, float y2)
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
public byte[] toByteArray()