org.sejda.impl.pdfbox.component
Class PagesExtractor
java.lang.Object
org.sejda.impl.pdfbox.component.PDDocumentHandler
org.sejda.impl.pdfbox.component.PagesExtractor
- All Implemented Interfaces:
- Closeable
public class PagesExtractor
- extends PDDocumentHandler
Component responsible for extracting a set of pages from an input PDDocumentHandler
to a new PDDocumentHandler
.
- Author:
- Andrea Vacondio
Methods inherited from class org.sejda.impl.pdfbox.component.PDDocumentHandler |
compressXrefStream, getNumberOfPages, getPermissions, getUnderlyingPDDocument, getViewerPreferences, importPage, saveDecryptedPDDocument, savePDDocument, setCreatorOnPDDocument, setDocumentInformation, setPageLayoutOnDocument, setPageModeOnDocument, setVersionOnPDDocument, setViewerPreferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PagesExtractor
public PagesExtractor(PDDocumentHandler sourceDocumentHandler)
throws TaskIOException
- Throws:
TaskIOException
extractPages
public void extractPages(Set<Integer> pages,
NotifiableTaskMetadata taskMetadata)
throws TaskIOException
- Throws:
TaskIOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class PDDocumentHandler
- Throws:
IOException
Copyright © 2012. All Rights Reserved.