org.sejda.impl.pdfbox.component
Class PagesExtractor

java.lang.Object
  extended by org.sejda.impl.pdfbox.component.PDDocumentHandler
      extended by 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

Constructor Summary
PagesExtractor(PDDocumentHandler sourceDocumentHandler)
           
 
Method Summary
 void close()
           
 void extractPages(Set<Integer> pages, NotifiableTaskMetadata taskMetadata)
           
 
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
 

Constructor Detail

PagesExtractor

public PagesExtractor(PDDocumentHandler sourceDocumentHandler)
               throws TaskIOException
Throws:
TaskIOException
Method Detail

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.