The Headers and Footers GUI page describes the current three-state sidebar field. This Programming page documents the technical raw values and their mapping separately from the user interface.
| Name | Value and meaning |
|---|---|
FILTERS | Contains the HEADERFOOTER filter identifier to activate the filter. Values are stored as a comma-separated list. |
FIXED_HEADER_SIZE | Integer size in pixels. A non-negative value is the manually defined header size. A negative value encodes automatic detection as -(size + 1). -1 therefore represents automatic detection with an exposed size of 0 pixels. |
FIXED_FOOTER_SIZE | The footer equivalent of the header-size value. Non-negative values are manual pixel sizes; negative values use the same automatic-detection encoding. |
The filter implementation treats every value below 0 as automatic detection. The current sidebar derives its mode from the filter identifier and both size values: if HEADERFOOTER is absent, the mode is Don't detect; if both size values are negative, it is Auto detect; once at least one value is non-negative, it is Set manually. The current profile sidebar provides Header Size and Footer Size sliders from 0 to 200 pixels.
The following example enables automatic detection:
<entry key="FILTERS">HEADERFOOTER</entry> <entry key="FIXED_HEADER_SIZE">-1</entry> <entry key="FIXED_FOOTER_SIZE">-1</entry>
A manual configuration stores non-negative size values:
<entry key="FILTERS">HEADERFOOTER</entry> <entry key="FIXED_HEADER_SIZE">36</entry> <entry key="FIXED_FOOTER_SIZE">42</entry>
| Key | Mapping |
|---|---|
pdfc.filter.header_footer_filter | Exposes GUI mode off, automatic, or manual and controls the HEADERFOOTER filter identifier in FILTERS. |
pdfc.filter.header_footer_filter.fixed_header_size | Accesses FIXED_HEADER_SIZE. |
pdfc.filter.header_footer_filter.fixed_footer_size | Accesses FIXED_FOOTER_SIZE. |
The structure and API keys are separate from the profile names. The profile configuration stores FILTERS, FIXED_HEADER_SIZE, and FIXED_FOOTER_SIZE; the structure interface uses keys with the pdfc.filter.header_footer_filter prefix.
HEADERFOOTER from FILTERS and sets both size values to -1.HEADERFOOTER to FILTERS and stores both size values as negative. Detection analyzes recurring header and footer areas.HEADERFOOTER to FILTERS, displays Header Size and Footer Size, and stores non-negative pixel values.