org.apache.fop.pdf
Class PDFRectangle
- public class PDFRectangle
class representing a rectangle
Rectangles are specified on page 183 of the PDF 1.3 spec.
Constructor Summary |
PDFRectangle(int llx, int lly, int urx, int ury) create a rectangle giving the four separate values |
PDFRectangle(int[] array) create a rectangle giving an array of four values |
Method Summary |
byte[] | toPDF() produce the PDF representation for the object |
PDFRectangle
public PDFRectangle(int llx, int lly, int urx, int ury)
- create a rectangle giving the four separate values
- Parameters:
- llx - lower left x coordinate
- lly - lower left y coordinate
- urx - upper right x coordinate
- ury - upper right y coordinate
PDFRectangle
public PDFRectangle(int[] array)
- create a rectangle giving an array of four values
- Parameters:
- array - values in the order llx, lly, urx, ury
toPDF
public byte[] toPDF()
- produce the PDF representation for the object
- Returns: the PDF