layout_options | 页面布局选项:
header:添加页眉。
footer:添加页脚。
header and footer:同时添加页眉和页脚。
no header or footer:不添加页眉和页脚。 |
header_height | 页眉高度(像素)。默认 0,最大 1024。 |
header_text | 页眉文本,支持多行。 |
header_align | 页眉文字对齐方式(如 left、center、right)。常用 center 居中,或 left 左对齐提升阅读性。 |
footer_height | 页脚高度(像素)。默认 0,最大 1024。同页眉设置,适合添加页码、作者信息等。 |
footer_text | 页脚文本,支持多行。 |
footer_align | 页脚文字对齐方式。 |
font_name | 字体文件名(自动读取内置字体目录下 .ttf 文件)。 |
font_color | 文本颜色预设名称。 |
header_font_size | 页眉字体大小,默认 150,最大 1024。 |
footer_font_size | 页脚字体大小,默认 50,最大 1024。 |
border_thickness | 页面边框粗细(像素)。 |
border_color | 边框颜色预设名称。 |
background_color | 页眉/页脚背景色预设名称。 |
font_color_hex | 页眉/页脚背景色预设名称。 |
border_color_hex | 边框颜色十六进制值。 |
bg_color_hex | 背景色十六进制值。 |