|
Foxit PDF SDK
|
继承自 Object .
Public 成员函数 | |
| HeaderFooter (const common::Font &font, float text_size, RGB text_color, const PageNumberRange &page_range, RectF page_margin, bool has_text_shrinked, bool has_fixedsize_for_print, int start_page_number, const HeaderFooterContent &content, bool is_to_embed_font, bool is_underline) | |
| Constructor, with parameters. 更多... | |
| HeaderFooter () | |
| Constructor. | |
| HeaderFooter (const HeaderFooter &other) | |
| 用另一个页眉页脚对象的构造函数。 更多... | |
| HeaderFooter & | operator= (const HeaderFooter &other) |
| 赋值操作符。 更多... | |
| void | Set (const common::Font &font, float text_size, RGB text_color, const PageNumberRange &page_range, RectF page_margin, bool has_text_shrinked, bool has_fixedsize_for_print, int start_page_number, const HeaderFooterContent &content, bool is_to_embed_font, bool is_underline) |
| 设置值。 更多... | |
Public 属性 | |
| HeaderFooterContent | content |
| 页眉页脚内容。 | |
| common::Font | font |
| 期望用于页眉页脚内容的有效字体对象。 更多... | |
| bool | has_fixedsize_for_print |
| 决定是否为打印使用固定大小的布尔值。 | |
| bool | has_text_shrinked |
| 决定是否缩小文本的布尔值。 | |
| bool | is_replace_font |
| (保留)决定是否替换字体的布尔值。目前 Foxit PDF SDK 始终将此值设为 true。 | |
| bool | is_to_embed_font |
| 决定是否嵌入字体的布尔值。 | |
| bool | is_underline |
| 决定是否给文本加下划线的布尔值。 | |
| RectF | page_margin |
| 指定页眉页脚内容位置的页边距。 如果用户未设置边距值,Foxit PDF SDK 将使用定义为 (72.0, 36.0, 72.0, 36.0) 的边距作为默认值。 更多... | |
| PageNumberRange | page_range |
| 指定当前页眉页脚使用页面的页码范围对象。 更多... | |
| int | start_page_number |
| 用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。 更多... | |
| RGB | text_color |
| 用于页眉页脚内容的文本颜色。 | |
| float | text_size |
| 页眉页脚内容的文本大小。 | |
This class represents properties and data for a header-footer.
|
inlineexplicit |
Constructor, with parameters.
| [in] | font | A valid font object used for header-footer content. Please refer to comment of font of current object. |
| [in] | text_size | Text size of header-footer content. |
| [in] | text_color | Text color used for header-footer content. |
| [in] | page_range | A page number range object which specifies pages where current header-footer is used. Please refer to comment of page_range of current object. |
| [in] | page_margin | Page margin which specifies the location for header-footer content. Please refer to comment of page_margin of current object. |
| [in] | has_text_shrinked | A boolean value that decides whether to shrink text or not. |
| [in] | has_fixedsize_for_print | A boolean value that decides whether to use fixed size for print or not. |
| [in] | start_page_number | A virtual page number used for the first page specified in parameter page_range. This can be any number, even different from the actual page number of the specified page. If this value is less than 1, Foxit PDF SDK will use 1 for this value when current header-footer object is used in a PDF document. |
| [in] | content | Header-footer content. |
| [in] | is_to_embed_font | A boolean value that decides whether to embed font or not. |
| [in] | is_underline | A boolean value that decides whether to underline text or not. |
|
inline |
用另一个页眉页脚对象的构造函数。
| [in] | other | 另一个页眉页脚对象。 |
|
inline |
赋值操作符。
| [in] | other | 另一个页眉页脚对象,其值将被赋值给当前对象。 |
|
inline |
设置值。
| [in] | font | 期望用于页眉页脚内容的有效字体对象。 请参阅当前对象的 font 注释。 |
| [in] | text_size | 页眉页脚内容的文本大小。 |
| [in] | text_color | 用于页眉页脚内容的文本颜色。 |
| [in] | page_range | 指定当前页眉页脚使用页面的页码范围对象。 请参阅当前对象的 page_range 注释。 |
| [in] | page_margin | 指定页眉页脚内容位置的页边距。 请参阅当前对象的 page_margin 注释。 |
| [in] | has_text_shrinked | 决定是否缩小文本的布尔值。 |
| [in] | has_fixedsize_for_print | 决定是否为打印使用固定大小的布尔值。 |
| [in] | start_page_number | 用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。 如果此值小于 1,当当前页眉页脚对象在 PDF 文档中使用时,Foxit PDF SDK 将对此值使用 1。 |
| [in] | content | 页眉页脚内容。 |
| [in] | is_to_embed_font | 决定是否嵌入字体的布尔值。 |
| [in] | is_underline | 决定是否给文本加下划线的布尔值。 |
| common::Font foxit::pdf::HeaderFooter::font |
期望用于页眉页脚内容的有效字体对象。
| RectF foxit::pdf::HeaderFooter::page_margin |
指定页眉页脚内容位置的页边距。 如果用户未设置边距值,Foxit PDF SDK 将使用定义为 (72.0, 36.0, 72.0, 36.0) 的边距作为默认值。
| PageNumberRange foxit::pdf::HeaderFooter::page_range |
指定当前页眉页脚使用页面的页码范围对象。
此范围中表示的所有值应从 1 开始且不超过使用当前页眉页脚对象的 PDF 文档的页数。
| int foxit::pdf::HeaderFooter::start_page_number |
用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。