Ignores repeating elements at the tops of pages.
Sensible recognizes headers in one of two ways:
key | value | description |
---|---|---|
type (required) | removeHeader | For an example, see the Examples section. |
startsOnPage | integer. default: 1 | The first page number on which to start checking for repeated elements. Note this is the page number, not the page’s zero-based index in the pages array. To filter out end pages that lack a repeating element, use the Page Range preprocessor to define an End Page parameter. |
match | Match object or array of Match objects | Bypasses automatic header recognition.Removes all text on the page above the top boundary of the matched line.If Sensible doesn’t find the match, it doesn’t perform header removal. |
offsetY | number in inches. default: 0 | Bypasses automatic footer recognition.Defines a point at which to start text removal. Positive values offset down the page, negative values offset up the page.If used with no Match parameter defined, offsets from the top of the page.If used with the Match parameter, offsets from the top boundary of the matched line. |
The following example shows:
Config
Example document
The following images show the example document used with this example config:
Example document | Download link |
---|
Output
Automatic header recognition
To recognize a header, this preprocessor starts at the top of the page and moves down the page, stopping as soon as it finds a nonrepeating element.
Sensible recognizes these elements as “repeating”:
These elements aren’t recognized as “repeating”:
Ignores repeating elements at the tops of pages.
Sensible recognizes headers in one of two ways:
key | value | description |
---|---|---|
type (required) | removeHeader | For an example, see the Examples section. |
startsOnPage | integer. default: 1 | The first page number on which to start checking for repeated elements. Note this is the page number, not the page’s zero-based index in the pages array. To filter out end pages that lack a repeating element, use the Page Range preprocessor to define an End Page parameter. |
match | Match object or array of Match objects | Bypasses automatic header recognition.Removes all text on the page above the top boundary of the matched line.If Sensible doesn’t find the match, it doesn’t perform header removal. |
offsetY | number in inches. default: 0 | Bypasses automatic footer recognition.Defines a point at which to start text removal. Positive values offset down the page, negative values offset up the page.If used with no Match parameter defined, offsets from the top of the page.If used with the Match parameter, offsets from the top boundary of the matched line. |
The following example shows:
Config
Example document
The following images show the example document used with this example config:
Example document | Download link |
---|
Output
Automatic header recognition
To recognize a header, this preprocessor starts at the top of the page and moves down the page, stopping as soon as it finds a nonrepeating element.
Sensible recognizes these elements as “repeating”:
These elements aren’t recognized as “repeating”: