Tabnine Logo
PDActionRemoteGoTo
Code IndexAdd Tabnine to your IDE (free)

How to use
PDActionRemoteGoTo
in
org.apache.pdfbox.pdmodel.interactive.action

Best Java code snippets using org.apache.pdfbox.pdmodel.interactive.action.PDActionRemoteGoTo (Showing top 14 results out of 315)

origin: apache/pdfbox

/**
 * Default constructor.
 */
public PDActionRemoteGoTo()
{
  setSubType( SUB_TYPE );
}
origin: apache/pdfbox

  /**
   * This will specify whether to open the destination document in a new window.
   *
   * @param value The flag value.
   */
  public void setOpenInNewWindow(OpenMode value)
  {
    if (null == value)
    {
      getCOSObject().removeItem(COSName.NEW_WINDOW);
      return;
    }
    switch (value)
    {
      case USER_PREFERENCE:
        getCOSObject().removeItem(COSName.NEW_WINDOW);
        break;
      case SAME_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, false);
        break;
      case NEW_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, true);
        break;
      default:
        // shouldn't happen unless the enum type is changed
        break;
    }
  }
}
origin: apache/tika

} else if (action instanceof PDActionRemoteGoTo) {
  PDActionRemoteGoTo remoteGoTo = (PDActionRemoteGoTo)action;
  processDoc("", remoteGoTo.getFile(), attributes);
} else if (action instanceof PDActionJavaScript) {
  PDActionJavaScript jsAction = (PDActionJavaScript)action;
origin: apache/pdfbox

  break;
case PDActionRemoteGoTo.SUB_TYPE:
  retval = new PDActionRemoteGoTo(action);
  break;
case PDActionURI.SUB_TYPE:
origin: org.apache.tika/tika-parsers

} else if (action instanceof PDActionRemoteGoTo) {
  PDActionRemoteGoTo remoteGoTo = (PDActionRemoteGoTo)action;
  processDoc("", remoteGoTo.getFile(), attributes);
} else if (action instanceof PDActionJavaScript) {
  PDActionJavaScript jsAction = (PDActionJavaScript)action;
origin: org.apache.pdfbox/pdfbox

retval = new PDActionRemoteGoTo( action );
origin: com.github.lafa.tikaNoExternal/tika-parsers

} else if (action instanceof PDActionRemoteGoTo) {
  PDActionRemoteGoTo remoteGoTo = (PDActionRemoteGoTo)action;
  processDoc("", remoteGoTo.getFile(), attributes);
} else if (action instanceof PDActionJavaScript) {
  PDActionJavaScript jsAction = (PDActionJavaScript)action;
origin: org.apache.pdfbox/pdfbox

/**
 * Default constructor.
 */
public PDActionRemoteGoTo()
{
  setSubType( SUB_TYPE );
}
origin: com.github.lafa.pdfbox/pdfbox

  break;
case PDActionRemoteGoTo.SUB_TYPE:
  retval = new PDActionRemoteGoTo(action);
  break;
case PDActionURI.SUB_TYPE:
origin: apache/pdfbox

/**
 * This will specify whether to open the destination document in a new window, in the same
 * window, or behave in accordance with the current user preference.
 *
 * @return A flag specifying how to open the destination document.
 */
public OpenMode getOpenInNewWindow()
{
  if (getCOSObject().getDictionaryObject(COSName.NEW_WINDOW) instanceof COSBoolean)
  {
    COSBoolean b = (COSBoolean) getCOSObject().getDictionaryObject(COSName.NEW_WINDOW);
    return b.getValue() ? OpenMode.NEW_WINDOW : OpenMode.SAME_WINDOW;
  }
  return OpenMode.USER_PREFERENCE;
}
origin: com.github.lafa.tikaNoExternal/tika-external

} else if (action instanceof PDActionRemoteGoTo) {
  PDActionRemoteGoTo remoteGoTo = (PDActionRemoteGoTo)action;
  processDoc("", remoteGoTo.getFile(), attributes);
} else if (action instanceof PDActionJavaScript) {
  PDActionJavaScript jsAction = (PDActionJavaScript)action;
origin: com.github.lafa.pdfbox/pdfbox

/**
 * Default constructor.
 */
public PDActionRemoteGoTo()
{
  action = new COSDictionary();
  setSubType( SUB_TYPE );
}
origin: org.apache.pdfbox/pdfbox

/**
 * This will specify whether to open the destination document in a new window, in the same
 * window, or behave in accordance with the current user preference.
 *
 * @return A flag specifying how to open the destination document.
 */
public OpenMode getOpenInNewWindow()
{
  if (getCOSObject().getDictionaryObject(COSName.NEW_WINDOW) instanceof COSBoolean)
  {
    COSBoolean b = (COSBoolean) getCOSObject().getDictionaryObject(COSName.NEW_WINDOW);
    return b.getValue() ? OpenMode.NEW_WINDOW : OpenMode.SAME_WINDOW;
  }
  return OpenMode.USER_PREFERENCE;
}
origin: org.apache.pdfbox/pdfbox

  /**
   * This will specify whether to open the destination document in a new window.
   *
   * @param value The flag value.
   */
  public void setOpenInNewWindow(OpenMode value)
  {
    if (null == value)
    {
      getCOSObject().removeItem(COSName.NEW_WINDOW);
      return;
    }
    switch (value)
    {
      case USER_PREFERENCE:
        getCOSObject().removeItem(COSName.NEW_WINDOW);
        break;
      case SAME_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, false);
        break;
      case NEW_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, true);
        break;
      default:
        // shouldn't happen unless the enum type is changed
        break;
    }
  }
}
org.apache.pdfbox.pdmodel.interactive.actionPDActionRemoteGoTo

Javadoc

This represents a remote go-to action that can be executed in a PDF document.

Most used methods

  • getFile
    This will get the file in which the destination is located.
  • <init>
    Constructor.
  • setSubType
  • getCOSObject

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now