T - the type of parameters the splitter needs to have all the information necessary to perform the split.public abstract class AbstractPdfSplitter<T extends AbstractPdfOutputParameters> extends Object
| Constructor and Description |
|---|
AbstractPdfSplitter(org.sejda.sambox.pdmodel.PDDocument document,
T parameters,
boolean optimize,
boolean discardOutline) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onClose(int page)
Called when an output document is going to be closed.
|
protected void |
onOpen(int page)
Called when an output document is going to be opened.
|
protected void |
onRetain(int page)
Called when the given page is going to be added .
|
void |
split(TaskExecutionContext executionContext,
String outputPrefix,
PdfSource<?> source) |
protected PagesExtractor |
supplyPagesExtractor(org.sejda.sambox.pdmodel.PDDocument document)
Creates the
PagesExtractor to be used by this AbstractPdfSplitter |
public AbstractPdfSplitter(org.sejda.sambox.pdmodel.PDDocument document,
T parameters,
boolean optimize,
boolean discardOutline)
public void split(TaskExecutionContext executionContext, String outputPrefix, PdfSource<?> source) throws TaskException
TaskExceptionprotected void onOpen(int page)
throws TaskException
page - the page number which is going to be addedTaskExceptionprotected void onRetain(int page)
throws TaskException
page - the page number which is going to be addedTaskExceptionprotected void onClose(int page)
throws TaskException
page - the last added page numberTaskExceptionprotected PagesExtractor supplyPagesExtractor(org.sejda.sambox.pdmodel.PDDocument document)
PagesExtractor to be used by this AbstractPdfSplitterCopyright © 2019 sejda. All rights reserved.