Class PdfPageSplitterConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.splitter.BaseDocumentSplitterConfig
com.norconex.importer.handler.splitter.impl.PdfPageSplitterConfig
- All Implemented Interfaces:
Labelable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe matcher of content types to apply splitting on.inthashCode()setContentTypeMatcher(TextMatcher contentTypeMatcher) The matcher of content types to apply splitting on.setReferencePagePrefix(String referencePagePrefix) toString()Methods inherited from class com.norconex.importer.handler.splitter.BaseDocumentSplitterConfig
isDiscardOriginal, setDiscardOriginalMethods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Constructor Details
-
PdfPageSplitterConfig
public PdfPageSplitterConfig()
-
-
Method Details
-
setContentTypeMatcher
The matcher of content types to apply splitting on. No attempt to split documents of any other content types will be made. Default isapplication/pdf.- Parameters:
contentTypeMatcher- content type matcher- Returns:
- this
-
getReferencePagePrefix
-
getContentTypeMatcher
The matcher of content types to apply splitting on. No attempt to split documents of any other content types will be made. Default isapplication/pdf.- Returns:
- content type matcher
-
setReferencePagePrefix
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseDocumentSplitterConfig
-
canEqual
- Overrides:
canEqualin classBaseDocumentSplitterConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseDocumentSplitterConfig
-
toString
- Overrides:
toStringin classBaseDocumentSplitterConfig
-