| java.lang.Object org.apache.xmlgraphics.ps.dsc.tools.PageExtractor
PageExtractor | public class PageExtractor implements DSCParserConstants(Code) | | This class can extract a certain range of pages from a DSC-compliant PostScript file.
|
Method Summary | |
public static void | extractPages(InputStream in, 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. |
extractPages | public static void extractPages(InputStream in, OutputStream out, int from, int to) throws IOException, DSCException(Code) | | Parses a DSC-compliant file and pipes the content through to the OutputStream omitting
all pages not within the range.
Parameters: in - the InputStream to parse from Parameters: out - the OutputStream to write the modified file to Parameters: from - the starting page (1-based) Parameters: to - the last page (inclusive, 1-based) throws: IOException - In case of an I/O error throws: DSCException - In case of a violation of the DSC spec |
|
|