Class PdfPageSplitter
java.lang.Object
com.norconex.importer.handler.splitter.AbstractDocumentSplitter<PdfPageSplitterConfig>
com.norconex.importer.handler.splitter.impl.PdfPageSplitter
- All Implemented Interfaces:
Configurable<PdfPageSplitterConfig>,ConfigurableDocHandler<PdfPageSplitterConfig>,DocHandler
Split PDFs pages so each pages are treated as individual documents. May not work on all PDFs (e.g., encrypted PDFs).
The original PDF is kept intact. If you want to eliminate it to keep only
the split pages, make sure to filter it. You can do so by filtering
out PDFs without one of these two fields added to each pages:
document.pdf.pageNumber or
document.pdf.numberOfPages. A filtering example:
By default this splitter restricts its use to
document.contentType matching application/pdf.
Should be used as a pre-parse handler.
- See Also:
-
Field Summary
FieldsFields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTYFields inherited from interface com.norconex.importer.handler.DocHandler
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()voidsplit(DocHandlerContext docCtx) toString()Methods inherited from class com.norconex.importer.handler.splitter.AbstractDocumentSplitter
handleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.norconex.importer.handler.DocHandler
close, init
-
Field Details
-
DOC_PDF_PAGE_NO
- See Also:
-
DOC_PDF_TOTAL_PAGES
- See Also:
-
DEFAULT_REFERENCE_PAGE_PREFIX
- See Also:
-
-
Constructor Details
-
PdfPageSplitter
public PdfPageSplitter()
-
-
Method Details
-
split
- Specified by:
splitin classAbstractDocumentSplitter<PdfPageSplitterConfig>- Throws:
DocHandlerException
-
getConfiguration
-
equals
- Overrides:
equalsin classAbstractDocumentSplitter<PdfPageSplitterConfig>
-
canEqual
- Overrides:
canEqualin classAbstractDocumentSplitter<PdfPageSplitterConfig>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDocumentSplitter<PdfPageSplitterConfig>
-
toString
- Overrides:
toStringin classAbstractDocumentSplitter<PdfPageSplitterConfig>
-