com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class LaunchAction

  • All Implemented Interfaces:
    IAppointment


    public final class LaunchAction
    extends PdfAction

    Represents a launch action that launches an application or opens or prints a document.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      String getFile()
      Gets the application to be launched or the document to be opened or printed.
      int getNewWindow()
      Gets a flag specifying whether to open the destination document in a new window (affect PDF documents only).
      void setFile(String value)
      Sets the application to be launched or the document to be opened or printed.
      void setNewWindow(int value)
      Sets a flag specifying whether to open the destination document in a new window (affect PDF documents only).
    • Constructor Detail

      • LaunchAction

        public LaunchAction(String file)

        Creates a launch action.

        Parameters:
        file - The file to be launched.
      • LaunchAction

        public LaunchAction(IDocument document,
                    String file)

        Creates a launch action.

        Parameters:
        document - Document where action will be created.
        file - The file to be launched.
    • Method Detail

      • getFile

        public String getFile()

        Gets the application to be launched or the document to be opened or printed.

        Returns:
        String value
      • setFile

        public void setFile(String value)

        Sets the application to be launched or the document to be opened or printed.

        Parameters:
        value - String value
      • getNewWindow

        public int getNewWindow()

        Gets a flag specifying whether to open the destination document in a new window (affect PDF documents only).

        Returns:
        ExtendedBoolean element
        See Also:
        ExtendedBoolean
      • setNewWindow

        public void setNewWindow(int value)

        Sets a flag specifying whether to open the destination document in a new window (affect PDF documents only). ExtendedBoolean

        Parameters:
        value - ExtendedBoolean element
        See Also:
        ExtendedBoolean