Foxit PDF SDK
|
Instance Methods | |
(void) | - addDate: |
Add a format string for a specified date format type. More... | |
(void) | - addPageNumber: |
Add a format string for a specified page number format type. More... | |
(void) | - addString: |
Add a string. More... | |
(void) | - clear |
Clear strings (including format strings) which have been added to current content generator. More... | |
(NSString *) | - generateContent |
Generate a final string which can be used as header-footer content. More... | |
(id) | - init |
Constructor. | |
(id) | - initWithOther: |
Constructor, with another header-footer content generator object. More... | |
(BOOL) | - isEmpty |
Check whether current object is empty or not. More... | |
This class is the generator for header-footer content. It can help user to combine dates in specified format, page numbers in specified format and any customized text content to one string which can be used as header-footer content.
- (void) addDate: | (FSHeaderFooterContentGeneratorDateFormatType) | format_type |
Add a format string for a specified date format type.
Header-footer content can contain format string for date. The date format string will be replaced by actual date time in specified format when the header-footer is used in PDF document.
[in] | format_type | Date format type. Please refer to values starting from FSHeaderFooterContentGeneratorDateFormatMSlashD and this should be one of these values. |
- (void) addPageNumber: | (FSHeaderFooterContentGeneratorPageNumberFormat) | format_type |
Add a format string for a specified page number format type.
Header-footer content can contain format string for page number. The page number format string will be replaced by page number in specified format when the header-footer is used in PDF document.
[in] | format_type | Page number format type. Please refer to values starting from FSHeaderFooterContentGeneratorPageNumberFormatDefault and this should be one of these values. |
- (void) addString: | (NSString *) | new_string |
Add a string.
[in] | new_string | A string. |
- (void) clear |
Clear strings (including format strings) which have been added to current content generator.
After this function is called, current content generator will be the same as a newly constructed object.
- (NSString *) generateContent |
Generate a final string which can be used as header-footer content.
- (id) initWithOther: | (FSHeaderFooterContentGenerator*) | other |
Constructor, with another header-footer content generator object.
[in] | other | Another header-footer content generator object. |
- (BOOL) isEmpty |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.