Header
Note: This filter outputs text both at the start of a file, and the start of a Restriction. To only output text at the start of a file, use the Add File Header filter.
Adds the contents of the file or the specified text to the start of each file. Useful for adding advertising banners to web pages or other forms of file header. This filter is usually positioned at the top of the filter list ie just after <input>. Sub filters can be used to pre-process the file or text being added.
Note: If you wish to add a header to each page of a file that contains many pages, the best method of doing so is to use an 'Add Header Text' filter in conjunction with a search and replace for page end characters. Search for a form feed character (\f or \012), and when you find it, replace with a \f followed by your page header text.
You can use this filter to add a Unicode Byte Order Mark (BOM) to your file:
| Byte sequence |
Description |
| \x00\x00\xFE\xFF |
UTF-32, big-endian |
| \xFF\xFE\x00\x00 |
UTF-32, little-endian |
| \xFE\xFF |
UTF-16, big-endian |
| \xFF\xFE |
UTF-16, little-endian |
| \xEF\xBB\xBF |
UTF-8 - optional, as UTF-8 only has one byte order. Mainly used as a Unicode signature. |
Add file header
Adds the contents of the file or the specified text to the start of each file. Useful for adding advertising banners to web pages or other forms of file header. This filter is usually positioned at the top of the filter list ie just after <input>. Sub filters can be used to pre-process the file or text being added.
Note: If you wish to add a header to each page of a file that contains many pages, the best method of doing so is to use an 'Add Header Text' filter in conjunction with a search and replace for page end characters. Search for a form feed character (\f or \012), and when you find it, replace with a \f followed by your page header text.
|