Gnostice PDFOne Java
Std. Ed. v2.10


com.gnostice.pdfone
Class PdfRemoteGotoAction

java.lang.Object
  extended by com.gnostice.pdfone.PdfAction
      extended by com.gnostice.pdfone.PdfRemoteGotoAction

public class PdfRemoteGotoAction
extends PdfAction

This class represents a remote go-to action.

PdfWriter writer1 = PdfWriter.fileWriter(
           new File("PdfRemoteGotoAction_example.pdf"));
PdfDocument doc1 = new PdfDocument(writer1);

// Create a PDF page
PdfPage page1 = new PdfPage();

// Render some text on the page
page1.writeText(
        "Click here to open another document.", 
        200, 100);

// Create a link annotation over a word rendered on page 1
PdfLinkAnnot la = 
    new PdfLinkAnnot(new PdfRect(223, 100, 23, 12), Color.BLUE);

// Create a remote go-to action for navigation into page 3
// of another document in the same directory
PdfRemoteGotoAction rga = 
    new PdfRemoteGotoAction("some_doc.pdf", 3, true);

// Add the remote go-to action to the link annotation
la.addAction(rga);

// Add the link annotation to page 1
page1.addAnnotation(la);

doc1.add(page1);
doc1.setOpenAfterSave(true);
doc1.write();
writer1.dispose();      


Nested Class Summary
 
Nested classes/interfaces inherited from class com.gnostice.pdfone.PdfAction
PdfAction.PdfEvent
 
Field Summary
 
Fields inherited from class com.gnostice.pdfone.PdfAction
GOTO, JAVASCRIPT, LAUNCH, NAMED, NAMED_FIND, NAMED_FIRSTPAGE, NAMED_LASTPAGE, NAMED_NEXTPAGE, NAMED_OPEN, NAMED_PREVPAGE, NAMED_PRINT, NAMED_SEARCH, REMOTE_GOTO, URI
 
Constructor Summary
PdfRemoteGotoAction(String pdfFilePath, int pageNo, boolean newWindow)
           
PdfRemoteGotoAction(String pdfFilePath, int pageNo, double left, double top, double zoom, boolean newWindow)
           
PdfRemoteGotoAction(String pdfFilePath, int pageNo, double x, double y, double width, double height, boolean newWindow)
           
PdfRemoteGotoAction(String pdfFilePath, int pageNo, double pos, int fit, boolean newWindow)
           
PdfRemoteGotoAction(String pdfFilePath, int pageNo, int fit, boolean newWindow)
           
PdfRemoteGotoAction(String pdfFilePath, int pageNo, PdfRect rect, boolean newWindow)
           
 
Method Summary
 int getDestinationType()
           
 int getFit()
           
 double getLeft()
           
 int getPageNo()
           
 String getPdfFilePath()
           
 double getPos()
           
 PdfRect getRect()
           
 double getTop()
           
 double getZoom()
           
 boolean isNewWindow()
           
 void setDestination(double left, double top, double zoom)
           
 void setDestination(double x, double y, double width, double height)
           
 void setDestination(double pos, int fit)
           
 void setDestination(int fit)
           
 void setDestination(PdfRect rect)
           
 void setNewWindow(boolean newWindow)
           
 void setPageNo(int pageNo)
           
 void setPdfFilePath(String pdfFilePath)
           
 
Methods inherited from class com.gnostice.pdfone.PdfAction
getActionType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           boolean newWindow)

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           double left,
                           double top,
                           double zoom,
                           boolean newWindow)

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           double x,
                           double y,
                           double width,
                           double height,
                           boolean newWindow)

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           double pos,
                           int fit,
                           boolean newWindow)
                    throws PdfException
Throws:
PdfException

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           int fit,
                           boolean newWindow)
                    throws PdfException
Throws:
PdfException

PdfRemoteGotoAction

public PdfRemoteGotoAction(String pdfFilePath,
                           int pageNo,
                           PdfRect rect,
                           boolean newWindow)
Method Detail

setDestination

public void setDestination(double left,
                           double top,
                           double zoom)

setDestination

public void setDestination(double x,
                           double y,
                           double width,
                           double height)

setDestination

public void setDestination(double pos,
                           int fit)
                    throws PdfException
Throws:
PdfException

setDestination

public void setDestination(int fit)
                    throws PdfException
Throws:
PdfException

setDestination

public void setDestination(PdfRect rect)

getFit

public int getFit()

getLeft

public double getLeft()

isNewWindow

public boolean isNewWindow()

setNewWindow

public void setNewWindow(boolean newWindow)

getPageNo

public int getPageNo()

setPageNo

public void setPageNo(int pageNo)

getPdfFilePath

public String getPdfFilePath()

setPdfFilePath

public void setPdfFilePath(String pdfFilePath)

getPos

public double getPos()

getTop

public double getTop()

getZoom

public double getZoom()

getRect

public PdfRect getRect()

getDestinationType

public int getDestinationType()

Gnostice PDFOne Java
Std. Ed. v2.10

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2008 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com