CPDFHeaderFooter Class Reference

Inherits from NSObject
Declared in CPDFHeaderFooter.h

Overview

Adds and removes the header & footer.

  pageString

Method to get / set the page range of the header & footer by string, such as “0,3,5-7”.

@property (nonatomic, strong) NSString *pageString

Discussion

Method to get / set the page range of the header & footer by string, such as “0,3,5-7”.

Declared In

CPDFHeaderFooter.h

  margin

Method to get / set the margins of the header & footer.

@property (nonatomic, assign) CPDFKitPlatformEdgeInsets margin

Discussion

Method to get / set the margins of the header & footer.

Declared In

CPDFHeaderFooter.h

  hasHeaderFooter

Method to check whether the document has a header & footer..

@property (nonatomic, assign) BOOL hasHeaderFooter

Discussion

Method to check whether the document has a header & footer..

Declared In

CPDFHeaderFooter.h

– textAtIndex:

Gets the text of the header & footer at the specified index.

- (NSString *)textAtIndex:(NSUInteger)index

Discussion

Gets the text of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– setText:atIndex:

Sets the text of the header & footer at the specified index.

- (void)setText:(NSString *)text atIndex:(NSUInteger)index

Discussion

Sets the text of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– textColorAtIndex:

Gets the font color of the header & footer at the specified index.

- (CPDFKitPlatformColor *)textColorAtIndex:(NSUInteger)index

Discussion

Gets the font color of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– setTextColor:atIndex:

Sets the font color of the header & footer at the specified index.

- (void)setTextColor:(CPDFKitPlatformColor *)color atIndex:(NSUInteger)index

Discussion

Sets the font color of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– fontSizeAtIndex:

Gets the font size of the header & footer at the specified index.

- (CGFloat)fontSizeAtIndex:(NSUInteger)index

Discussion

Gets the font size of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– setFontSize:atIndex:

Sets the font size of the header & footer at the specified index.

- (void)setFontSize:(CGFloat)fontSize atIndex:(NSUInteger)index

Discussion

Sets the font size of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– fontNameAtIndex:

Gets the font name of the header & footer at the specified index.

- (NSString *)fontNameAtIndex:(NSUInteger)index

Discussion

Gets the font name of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– setFontName:atIndex:

Sets the font name of the header & footer at the specified index.

- (void)setFontName:(NSString *)fontName atIndex:(NSUInteger)index

Discussion

Sets the font name of the header & footer at the specified index.

Declared In

CPDFHeaderFooter.h

– update

Updates the header & footer.

- (void)update

Discussion

Updates the header & footer.

Declared In

CPDFHeaderFooter.h

– reload

Reload the header & footer.

- (void)reload

Discussion

Reload the header & footer.

Declared In

CPDFHeaderFooter.h

– clear

Removes the header & footer.

- (BOOL)clear

Discussion

Removes the header & footer.

Declared In

CPDFHeaderFooter.h