public class DeletePDFPages extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
acroCmd_
The path/command to run the acroreader.
|
static String |
DEFAULT_INPUT_FILENAME
Default input filename.
|
private int[] |
deletePages_ |
private static String |
inFileName_
The input filename that will be cropped and saved in output filename.
|
private static boolean |
launchAcroread_
Flags the auto execution of acro reader after the cropping.
|
private static boolean |
launchGui_
Flags whether the gui launches on startup.
|
private static String |
outFileName_
The output filename string.
|
private static Rectangle |
outputPageSize_
The size of the resultant page.
|
private static String |
usage_
The usage string.
|
Constructor and Description |
---|
DeletePDFPages()
Default Constructor assumes default values for EVERYTHING.
|
DeletePDFPages(int[] deletePages)
Constructor that takes the edge crop sizes in inches.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doDelete()
Executes the deleting as specified by the class parms.
|
int[] |
getDeletePages()
Getter.
|
String |
getInFileName()
Getter.
|
String |
getOutFileName()
Getter.
|
static void |
main(String[] args)
The main program for the DeletePDFPages class
|
private boolean |
pageToDelete(int num) |
boolean |
parseCmdlineParms(String[] args)
Parses the input commandline parameters and assigns the various class
variables.
|
void |
setDeletePages(int[] parm)
Setter.
|
void |
setInFileName(String inFileName)
Setter for input filename.
|
void |
setOutFileName()
Setter.
|
void |
setOutFileName(String outFileName)
Setter.
|
public static final String DEFAULT_INPUT_FILENAME
private static String inFileName_
private static String outFileName_
private static Rectangle outputPageSize_
private static boolean launchAcroread_
private static boolean launchGui_
private int[] deletePages_
public DeletePDFPages()
public DeletePDFPages(int[] deletePages)
public static void main(String[] args)
args
- The command line argumentspublic boolean parseCmdlineParms(String[] args)
public boolean doDelete()
private boolean pageToDelete(int num)
public void setDeletePages(int[] parm)
public int[] getDeletePages()
public void setInFileName(String inFileName)
public String getInFileName()
public void setOutFileName()
public void setOutFileName(String outFileName)
public String getOutFileName()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses