org.foray.pdf.object
Class PDFGoTo
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFAction
org.foray.pdf.object.PDFGoTo
public class PDFGoTo
- extends PDFAction
class representing a /GoTo object.
Method Summary |
String |
getAction()
represent the action to call
this method should be implemented to return the action which gets
called by the Link Object. |
String |
toPDF()
Generates the PDF text necessary to represent the object, returning it
as a String. |
Methods inherited from class org.foray.pdf.object.PDFObject |
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFGoTo
public PDFGoTo(PDFDocument doc,
PDFDestination destination)
- Create a /GoTo object.
- Parameters:
doc
- The parent PDF document.destination
- The PDFDestination that this object should "go to".
getAction
public String getAction()
- Description copied from class:
PDFAction
- represent the action to call
this method should be implemented to return the action which gets
called by the Link Object. This could be a reference to another object
or the specific destination of the link
- Specified by:
getAction
in class PDFAction
- Returns:
- the action to place next to /A within a Link
toPDF
public String toPDF()
- Description copied from class:
PDFObject
- Generates the PDF text necessary to represent the object, returning it
as a String.
- Returns:
- The PDF text necessary to represent the object.
Copyright © 2017. All rights reserved.