mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
实现导出pdf
This commit is contained in:
@@ -287,16 +287,16 @@ func getFooter(po *PageOptions, totalpages int) string {
|
||||
*/
|
||||
func setDefault(po *PageOptions, totalpages int) *PageOptions {
|
||||
if len(po.FirstPageText) <= 0 {
|
||||
po.FirstPageText = "首页"
|
||||
po.FirstPageText = "«"
|
||||
}
|
||||
if len(po.LastPageText) <= 0 {
|
||||
po.LastPageText = "尾页"
|
||||
po.LastPageText = "»"
|
||||
}
|
||||
if len(po.PrePageText) <= 0 {
|
||||
po.PrePageText = "上一页"
|
||||
po.PrePageText = "‹"
|
||||
}
|
||||
if len(po.NextPageText) <= 0 {
|
||||
po.NextPageText = "下一页"
|
||||
po.NextPageText = "›"
|
||||
}
|
||||
if po.CurrentPage >= totalpages {
|
||||
po.CurrentPage = totalpages
|
||||
|
||||
Reference in New Issue
Block a user