org.apache.fop.pdf
Class PDFGoTo
org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFGoTo
- public class PDFGoTo
- extends PDFObject
class representing a /GoTo object.
Constructor Summary |
PDFGoTo(int number, String pageReference) create a /GoTo object. |
Method Summary |
void | setPageReference(String pageReference) Sets page reference after object has been created |
void | setXPosition(int xPosition) Sets the x Position to jump to |
void | setYPosition(int yPosition) Sets the Y position to jump to |
byte[] | toPDF() represent the object in PDF |
PDFGoTo
public PDFGoTo(int number, String pageReference)
- create a /GoTo object.
- Parameters:
- number - the object's number
- pageReference - the pageReference represented by this object
setPageReference
public void setPageReference(String pageReference)
- Sets page reference after object has been created
- Parameters:
- pageReference
the - new page reference to use
setXPosition
public void setXPosition(int xPosition)
- Sets the x Position to jump to
- Parameters:
- xPosition - x position
setYPosition
public void setYPosition(int yPosition)
- Sets the Y position to jump to
- Parameters:
- yPosition - y position
toPDF
public byte[] toPDF()
- represent the object in PDF
- Returns: the PDF string
to Class java.lang.String- the pageReference