org.foray.pdf.object
Class PDFGoTo

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFAction
          extended by org.foray.pdf.object.PDFGoTo

public class PDFGoTo
extends PDFAction

class representing a /GoTo object.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFGoTo(PDFDocument doc, PDFDestination destination)
          Create 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
 

Constructor Detail

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".
Method Detail

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.