com.gnostice.pdfone
Class PdfLaunchAction
java.lang.Object
com.gnostice.pdfone.PdfAction
com.gnostice.pdfone.PdfLaunchAction
public class PdfLaunchAction
- extends PdfAction
This class represents a launch action.
// Create a PDF page
PdfPage page1 = new PdfPage();
// Render some text on the page
page1.writeText(
"Click here to launch the notepad " +
"application in the current folder.",
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 launch action that launches an
// application in the current directory
PdfLaunchAction lAction =
new PdfLaunchAction("notepad.exe", false);
// Add the launch action to the link annotation
la.addAction(lAction);
// Add the link annotation to page 1
page1.addAnnotation(la);
| 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 |
PdfLaunchAction
public PdfLaunchAction(String applicationOrFileToLaunch,
boolean print)
getApplicationOrFileToLaunch
public String getApplicationOrFileToLaunch()
setApplicationOrFileToLaunch
public void setApplicationOrFileToLaunch(String applicationOrFileToLaunch)
isPrint
public boolean isPrint()
setPrint
public void setPrint(boolean print)
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