Package adams.core.io
Class iTextPDF
- java.lang.Object
-
- adams.core.io.iTextPDF
-
public class iTextPDF extends Object
Helper class for iTextPDF.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description iTextPDF()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
extractPages(LoggingSupporter logging, ByteArrayInputStream input, UnorderedRange range, ByteArrayOutputStream output)
Extracts a subset of pages from one PDF file and stores that in another PDF file.static String
extractPages(LoggingSupporter logging, File input, UnorderedRange range, File output)
Extracts a subset of pages from one PDF file and stores that in another PDF file.
-
-
-
Method Detail
-
extractPages
public static String extractPages(LoggingSupporter logging, File input, UnorderedRange range, File output)
Extracts a subset of pages from one PDF file and stores that in another PDF file.- Parameters:
logging
- for logging, can be nullinput
- the input PDFrange
- the range of pages to extractoutput
- the output PDF- Returns:
- null if successful, otherwise error message
-
extractPages
public static String extractPages(LoggingSupporter logging, ByteArrayInputStream input, UnorderedRange range, ByteArrayOutputStream output)
Extracts a subset of pages from one PDF file and stores that in another PDF file.- Parameters:
logging
- for logging, can be nullinput
- the input PDFrange
- the range of pages to extractoutput
- the output PDF- Returns:
- null if successful, otherwise error message
-
-