| java.lang.Object ps.DSCProcessingExample1
DSCProcessingExample1 | public class DSCProcessingExample1 (Code) | | Demonstrates how the DSC parser can be used to extract a series of pages from a DSC-compliant
PostScript file. For details how this works, please look into the PageExtractor class
where the actual functionality is located. This sample class only calls the code there.
|
Method Summary | |
public void | extractPages(File srcFile, File tgtFile, int from, int to) Extracts a series of pages from a DSC-compliant PostScript file. | public static void | main(String[] args) |
extractPages | public void extractPages(File srcFile, File tgtFile, int from, int to) throws IOException(Code) | | Extracts a series of pages from a DSC-compliant PostScript file.
Parameters: srcFile - the source PostScript file Parameters: tgtFile - the target file to write the extracted pages to Parameters: from - the starting page number Parameters: to - the ending page number throws: IOException - In case of an I/O error |
main | public static void main(String[] args)(Code) | | Command-line interface
Parameters: args - command-line arguments |
|
|