org.apache.xmlgraphics.ps.dsc.tools
public class PageExtractor extends java.lang.Object implements DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor and Description |
|---|
PageExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extractPages(java.io.InputStream in,
java.io.OutputStream out,
int from,
int to)
Parses a DSC-compliant file and pipes the content through to the OutputStream omitting
all pages not within the range.
|
public static void extractPages(java.io.InputStream in,
java.io.OutputStream out,
int from,
int to)
throws java.io.IOException,
DSCException
in - the InputStream to parse fromout - the OutputStream to write the modified file tofrom - the starting page (1-based)to - the last page (inclusive, 1-based)java.io.IOException - In case of an I/O errorDSCException - In case of a violation of the DSC specCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.