Class PDFOutput
- java.lang.Object
- 
- com.inductiveautomation.rm.pdf.writer.PDFOutput
 
- 
- Direct Known Subclasses:
- PDFBuffer,- PDFOutputStream
 
 public abstract class PDFOutput extends java.lang.ObjectA PDF Output destination. The child classes are responsible for the implementation, but thePDFOutputStreamis currently the preferred option to prevent large PDFs from residing in memory unnecessarily.
- 
- 
Constructor SummaryConstructors Constructor Description PDFOutput()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PDFOutputappend(byte[] theBytes)Appends an arbitrary byte array.abstract PDFOutputappend(byte[] theBytes, int anOffset, int aLength)Appends an arbitrary byte array with the given offset and length.abstract PDFOutputappend(char aChar)Adds a character to the pdf buffer.PDFOutputappend(double aDouble)Adds a double and newline to the pdf buffer.PDFOutputappend(int anInt)Adds an int to the pdf buffer.PDFOutputappend(RMRect aRect)Writes a rect to the pdf buffer.PDFOutputappend(RMColor aColor)Writes a color.PDFOutputappend(java.lang.String aString)Adds a string to the pdf buffer.PDFOutputappendDigits(int anInt, int aPad)Appends digits of a whole number (recursively), padded by zeros on the left to the given number of pad digits.PDFOutputappendln()Adds a newline to the pdf buffer.PDFOutputappendln(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.abstract longlength()Returns the current length of the output.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.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 abstract long length() Returns the current length of the output.
 - 
appendpublic abstract PDFOutput append(char aChar) Adds a character to the pdf buffer.
 - 
appendpublic abstract PDFOutput append(byte[] theBytes, int anOffset, int aLength) Appends an arbitrary byte array with the given offset and length.
 - 
appendpublic PDFOutput append(java.lang.String aString) Adds a string to the pdf buffer.
 - 
appendpublic PDFOutput append(int anInt) Adds an int to the pdf buffer.
 - 
appendpublic PDFOutput append(double aDouble) Adds a double and newline to the pdf buffer.
 - 
appendpublic PDFOutput append(byte[] theBytes) Appends an arbitrary byte array.
 - 
appendlnpublic PDFOutput appendln() Adds a newline to the pdf buffer.
 - 
appendlnpublic PDFOutput appendln(java.lang.String aString) Adds a string and newline to the pdf buffer.
 - 
appendDigitspublic PDFOutput appendDigits(int anInt, int aPad) Appends digits of a whole number (recursively), padded by zeros on the left to the given number of pad digits.
 - 
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.
 
- 
 
-