com.lowagie.tools
public class Executable extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
acroread
The path to Acrobat Reader.
|
Constructor and Description |
---|
Executable() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Process |
action(java.lang.String fileName,
java.lang.String parameters,
boolean waitForTermination)
Performs an action on a PDF document.
|
static boolean |
isLinux()
Checks the Operating System.
|
static boolean |
isMac()
Checks the Operating System.
|
static boolean |
isWindows()
Checks the Operating System.
|
static boolean |
isWindows9X()
Checks the Operating System.
|
static void |
launchBrowser(java.lang.String url)
Launches a browser opening an URL.
|
static java.lang.Process |
openDocument(java.io.File file)
Opens a PDF document.
|
static java.lang.Process |
openDocument(java.io.File file,
boolean waitForTermination)
Opens a PDF document.
|
static java.lang.Process |
openDocument(java.lang.String fileName)
Opens a PDF document.
|
static java.lang.Process |
openDocument(java.lang.String fileName,
boolean waitForTermination)
Opens a PDF document.
|
static java.lang.Process |
printDocument(java.io.File file)
Prints a PDF document.
|
static java.lang.Process |
printDocument(java.io.File file,
boolean waitForTermination)
Prints a PDF document.
|
static java.lang.Process |
printDocument(java.lang.String fileName)
Prints a PDF document.
|
static java.lang.Process |
printDocument(java.lang.String fileName,
boolean waitForTermination)
Prints a PDF document.
|
static java.lang.Process |
printDocumentSilent(java.io.File file)
Prints a PDF document without opening a Dialog box.
|
static java.lang.Process |
printDocumentSilent(java.io.File file,
boolean waitForTermination)
Prints a PDF document without opening a Dialog box.
|
static java.lang.Process |
printDocumentSilent(java.lang.String fileName)
Prints a PDF document without opening a Dialog box.
|
static java.lang.Process |
printDocumentSilent(java.lang.String fileName,
boolean waitForTermination)
Prints a PDF document without opening a Dialog box.
|
private static java.lang.Process action(java.lang.String fileName, java.lang.String parameters, boolean waitForTermination) throws java.io.IOException
fileName
- parameters
- waitForTermination
- java.io.IOException
public static final java.lang.Process openDocument(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
- java.io.IOException
public static final java.lang.Process openDocument(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
- java.io.IOException
public static final java.lang.Process openDocument(java.lang.String fileName) throws java.io.IOException
fileName
- java.io.IOException
public static final java.lang.Process openDocument(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public static final java.lang.Process printDocument(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
- java.io.IOException
public static final java.lang.Process printDocument(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
- java.io.IOException
public static final java.lang.Process printDocument(java.lang.String fileName) throws java.io.IOException
fileName
- java.io.IOException
public static final java.lang.Process printDocument(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public static final java.lang.Process printDocumentSilent(java.lang.String fileName, boolean waitForTermination) throws java.io.IOException
fileName
- waitForTermination
- java.io.IOException
public static final java.lang.Process printDocumentSilent(java.io.File file, boolean waitForTermination) throws java.io.IOException
file
- waitForTermination
- java.io.IOException
public static final java.lang.Process printDocumentSilent(java.lang.String fileName) throws java.io.IOException
fileName
- java.io.IOException
public static final java.lang.Process printDocumentSilent(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public static final void launchBrowser(java.lang.String url) throws java.io.IOException
url
- the URL you want to open in the browserjava.io.IOException
public static boolean isWindows()
public static boolean isWindows9X()
public static boolean isMac()
public static boolean isLinux()