Class PDFBuffer
- java.lang.Object
- 
- com.inductiveautomation.rm.pdf.writer.PDFBuffer
 
- 
- Direct Known Subclasses:
- PDFPage
 
 public class PDFBuffer extends java.lang.ObjectThis class is like a StringBuffer, but for creating PDF files instead of strings.
- 
- 
Constructor SummaryConstructors Constructor Description PDFBuffer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFBufferappend(byte[] theBytes)Appends an arbitrary byte array.PDFBufferappend(byte[] theBytes, int anOffset, int aLength)Appends an arbitrary byte array with the given offset and length.PDFBufferappend(char aChar)Adds a character to the pdf buffer.PDFBufferappend(double aDouble)Adds a double and newline to the pdf buffer.PDFBufferappend(int anInt)Adds an int to the pdf buffer.PDFBufferappend(RMRect aRect)Writes a rect to the pdf buffer.PDFBufferappend(RMColor aColor)Writes a color.PDFBufferappend(PDFBuffer aBuffer)Appends another buffer.PDFBufferappend(java.lang.String aString)Adds a string to the pdf buffer.PDFBufferappendln()Adds a newline to the pdf buffer.PDFBufferappendln(java.lang.String aString)Adds a string and newline to the pdf buffer.voidcurveTo(float x1, float y1, float x2, float y2, float x3, float y3)Writes a curveto operator.intlength()Returns the current length of the buffer.voidlineTo(float x, float y)Writes a lineto operator.voidmoveTo(float x, float y)Writes a moveto operator.voidprintPDFString(java.lang.String aString)Adds a string object ( a string enclosed in parentheses ) to the buffer.voidquadTo(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.voidtransform(double a, double b, double c, double d, double tx, double ty)Writes a transform to pdf buffer.voidtransform(RMTransform aTransform)Writes a transform to pdf buffer.voidwritePath(java.awt.Shape aShape)Writes a given path to PDF file.
 
- 
- 
- 
Method Detail- 
lengthpublic int length() Returns the current length of the buffer.
 - 
appendpublic PDFBuffer append(char aChar) Adds a character to the pdf buffer.
 - 
appendpublic PDFBuffer append(java.lang.String aString) Adds a string to the pdf buffer.
 - 
appendpublic PDFBuffer append(int anInt) Adds an int to the pdf buffer.
 - 
appendpublic PDFBuffer append(double aDouble) Adds a double and newline to the pdf buffer.
 - 
appendpublic PDFBuffer append(byte[] theBytes) Appends an arbitrary byte array.
 - 
appendpublic PDFBuffer append(byte[] theBytes, int anOffset, int aLength) Appends an arbitrary byte array with the given offset and length.
 - 
appendlnpublic PDFBuffer appendln() Adds a newline to the pdf buffer.
 - 
appendlnpublic PDFBuffer appendln(java.lang.String aString) Adds a string and newline to the pdf buffer.
 - 
printPDFStringpublic void printPDFString(java.lang.String aString) Adds a string object ( a string enclosed in parentheses ) to the buffer. All chars above the seven bit range are represented by an octal version of the form '\ddd'. The characters '(', ')' and '\' are escaped with backslash.
 - 
transformpublic void transform(RMTransform aTransform) Writes a transform to pdf buffer.
 - 
transformpublic void transform(double a, double b, double c, double d, double tx, double ty)Writes a transform to pdf buffer.
 - 
writePathpublic void writePath(java.awt.Shape aShape) Writes a given path to PDF file.
 - 
moveTopublic void moveTo(float x, float y)Writes a moveto operator.
 - 
lineTopublic void lineTo(float x, float y)Writes a lineto operator.
 - 
quadTopublic void quadTo(float lastX, float lastY, float x1, float y1, float x2, float y2)Writes a quadto operator.
 - 
curveTopublic void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)Writes a curveto operator.
 - 
toByteArraypublic byte[] toByteArray() Returns the buffer as a byte array.
 
- 
 
-